i m  trying to read the input of the radio button and compare it with a
string and further increment a count variable as per the result of
comparison.i e used

<%= form_for(@abc) do |f| %>
<div id="radio_buttons">
<%= radio_button_tag 'exp', 2 %>2
  <%= radio_button_tag 'exp', 1 %>1
<%= link_to 'Submit now', {:action=>"destroy"},:remote => true, :submit
=>
'radio_buttons' %>
</div>
<%end%>

def destroy
  $score= params[:exp];
  if params[:exp] = '1'
       @ac=params[:exp]
   end
end
I m not able to see the parameter either $score or @ac

Kindly give me the solution

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to