> I am using multiple check box and a radio > button and when I click the "Submit" button, it calls the "create" > method it is inserting only 1 value for checkbox and also for the radio > button. > Could you please tell how to insert multiple check box values in create. > Please send me the link if you have any sample programs. <% for something in @something %> <%= check_box_tag name[], somethind.id, checked = false %> <% end %> and you receive the id's of the checked check boxes in array of name i.e. params[:name]
-- 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 -~----------~----~----~----~------~----~------~--~---

