title: Rails - passing parameters to session
body: <p>I do not want the parameters to be shown in url. Therefore an option </p>
  
  <pre><code>&lt;%= link_to mem, edit_group_member_groups_path(:grp_mem =&gt; mem)%&gt;
  </code></pre>
  
  <p>does not suit me.</p>
  
  <p>Till now I have saved the parameters in browser cookies by doing this:</p>
  
  <pre><code>&lt;script&gt;
  $( function() {         
      $(".grp_member").on("click", function(e) {     
          $.cookie("grp_mem",$(this).attr("grp_mem"),{ path: '/' });                              
      });
  })
  &lt;/script&gt;
  
  &lt;%= link_to mem, edit_group_member_groups_path, :grp_mem =&gt; mem, :class =&gt; "grp_member" %&gt;
  </code></pre>
  
  <p>BUT everybody can modify the browser cookie and get not allowed information.</p>
  
  <p>So, my next idea is to save the parameters in session . However, I do not know how to pass the parameters to session without url. Is it possible to do with javascipt as well? If yes, how? Or is there another options to do it?
  Thank you in advance.</p>