Thank for ur reply i m not sure about how to write the form for this radio_button. if i use the form_for @abc where abc is the database i m not able to read input with params[:]. i did use the form as <%= form_for(@abc) do |f| %> <tr><%=f.radio_button:e,@abc.a%> <%=f.label:rating_1,@abc.a%></tr> <tr><%=f.radio_button:e,@abc.b%> <%=f.label:rating_1,@abc.b%></tr> <tr><%=f.radio_button:e,@abc.c%> <%=f.label:rating_1,@abc.c%></tr> <%=f.radio_button:e,@abc.d%> <%=f.label:rating_1,@abc.d%>
where the answer selected would get updated to the database. as you said i don want to update it in the database . i need to modify this form to a way where i need to read the value of the selection and inmcrement the counter on per user basis. -- 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.

