Hi,
Am creating a survey, in which am getting the questions from question
table and answers from answers table.
In the survey table am displaying the questions with the answers as
multiple choice using radio buttons.
Also while selcting the option the vote_count should be increased.

The front end part is working correctly, it shows as per my requirement.
but no values are updated in the database.


<%=radio_button(:nominees, count,  :onclick =>
@voting.increment!('vote_count') ) %> <%= response.nomination %>
i want to store the selected values in nominees attribute and want to
increase the vote_count by selecting the option.
any help or advice reg this would be very helpful.
-- 
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to