title: How to get params value in action on link click
body: <p>My view code is</p>
  
  <pre><code>&lt;%= form_for(@payment,:url =&gt; verify_payment_payment_index_path) do |f| %&gt;
    &lt;%= f.radio_button("amount", "10") %&gt;
    &lt;%= label :amount, '10 Rs',:style =&gt; "display:inline" %&gt; &lt;br&gt;
    &lt;%= f.radio_button("amount", "20") %&gt;
    &lt;%= label :amount, '20 rs',:style =&gt; "display:inline" %&gt;&lt;br&gt;
    &lt;%= f.radio_button("amount", "50") %&gt;
    &lt;%= label :amount, '50 rs',:style =&gt; "display:inline" %&gt;&lt;br&gt;
    &lt;%= f.radio_button :amount, '100' %&gt; 
    &lt;%= label :amount, '100 rs',:style =&gt; "display:inline" %&gt;&lt;br&gt;    
    &lt;%= link_to "Make Payment", verify_payment_payment_index_url, 
                :class =&gt; "btn",
                :data =&gt; { :toggle =&gt; "modal",
                           "target" =&gt; "#myBox" },
                "for"=&gt;"Make Payment" %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>And I want to access all values in params in controller action after click on link "Make Payment". So how can I achieve it in rails 3?. Please note that I have to open lightbox on click of link and then submit form</p>