mredding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jan-18 15:51 UTC
Update All using Checkboxes
So I have a list of jobs which I show like this. (cleaned up..) _list.rhtml <table> <% for job in @jobs %> <tr><td><%= job.name %></td></tr> <% end %> I want checkboxes next to each and every job name and a button or link somewhere else on the page to "delete selected", "publish selected" , and "unpublish selected" I have seen the RailsCast which does this, but it uses REST and I am not using REST and am confused. Can anyone help? I need the data of the checkboxes in the controller. Just not sure how to get it. I am pretty sure I want something like this in the view. <td align="center"><%= check_box_tag "job_ids[]", job.id %></td> But don''t know what the form header or submit buttons should look like to get me the data in the controller. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---