title: how to pass params from radio_button_tags to controller
body: <p>Here is my form that displays all the <code>feedbacks</code> that was not reviewed yet by admin:</p>
  
  <p>I have 2 radio buttons next to each <code>feedback</code> to select accept or denied with values <code>1</code> or <code>2</code>.</p>
  
  <pre><code>&lt;% form_tag moderate_feedbacks_path, :method =&gt; :put do %&gt;
    &lt;table&gt;
      &lt;% @all_feedbacks.each do |feedback| %&gt;
      &lt;tr&gt;
        &lt;td&gt;&lt;%= radio_button_tag :review_option, '1', false, :name =&gt; feedback.id %&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%= radio_button_tag :review_option, '2', false, :name =&gt; feedback.id %&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%= feedback.name %&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%= feedback.email %&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%= feedback.message %&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;% end %&gt;
     &lt;/table&gt;
  &lt;%= submit_tag 'Apply' %&gt;
  &lt;% end -%&gt;
  </code></pre>
  
  <p>what I want to do is when I click <code>submit_tag</code>, to update the <code>review_option</code> field for each selected <code>feedback</code> with the value of that <code>radio_button_tag</code>, <code>1</code> or <code>2</code></p>
  
  <p>I have by now the form as you see it, works good, but I am stuck at the controller part:</p>
  
  <pre><code>def moderate_feedbacks
    Feedback.update_all(["review_option = ?", ????])
    redirect_to admin_feedbacks_path
  end
  </code></pre>
  
  <p>how do I pass the params from those radio buttons to the controller.
  Thank you.</p>
  
  <p><strong>p.s.</strong> html source:</p>
  
  <pre><code>&lt;input id="review_option_1" name="3" type="radio" value="1"&gt;
  &lt;input id="review_option_2" name="3" type="radio" value="2"&gt;
  </code></pre>
  
  <p>name is taken from <code>feedback.id</code></p>
  
  <p>logs when I press the submit_tag looks like this;</p>
  
  <pre><code>Processing Admin::FeedbacksController#moderate_feedbacks (for 127.0.0.1 at 2012-10-16 15:36:20) [PUT]
    Parameters: {"commit"=&gt;"Apply", "3"=&gt;"2", "4"=&gt;"1"}
  </code></pre>
  
  <p>where 3 is the id of feedback - 2 the radio value, 4 is the id of feedback - 1 the radio value</p>
  
  <p>after <code>raise.params["feedback.is"].inspect</code></p>
  
  <pre><code>Parameters:
  
      {"commit"=&gt;"Apply",
       "3"=&gt;"1",
       "4"=&gt;"1",
       "_method"=&gt;"put"}
  </code></pre>