title: Rails -- Passing radio button values to a parameter
body: <p>I'm trying to use some radio buttons to be selected and use the parameter as a find condition for my model... SO far I have.
  View</p>
  
  <pre><code>&lt;% form_tag do %&gt;
  &lt;p&gt; &lt;%= radio_button_tag :interest,  "apple" %&gt; Apple &lt;/p&gt;
  &lt;p&gt; &lt;%= radio_button_tag :interest, "orange" %&gt; Orange &lt;/p&gt;
  &lt;p&gt; &lt;%= radio_button_tag  :interest, "peach" %&gt; Peach &lt;/p&gt;
  &lt;p&gt; &lt;%= radio_button_tag :interest, "banana" %&gt; Banana &lt;/p&gt;
  &lt;p&gt; &lt;%= submit_tag 'Choice' %&gt; &lt;/p&gt;
  &lt;% end %&gt; 
  &lt;p&gt;Result: &lt;%= @result %&gt;&lt;/p&gt;
  </code></pre>
  
  <p>how do i get @result = param[?], so it displays the value of the radiobuttons?</p>
  
  <p>Eventually, I would to put the parameter into a find conditions where it would be something Fruit.find(:all, :type => "name LIKE ?", param[?])</p>
  
  <p>I looked at <a href="https://stackoverflow.com/questions/623051/radio-buttons-on-rails">Radio buttons on Rails</a> but I didnt know how to make is a form so you I could read the parameter value</p>