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 are right about the checkbox; it should look something like that.
I believe the correct form is:
<%= check_box("job_ids", jod.id) %>
Then you just use an old school form(on top of my head):
<%- form_tag :controller => 'foo', :action => 'bar' do -%>
<%= check_box("job_ids", jod.id) %>
<%= submit_tag("Go")
<%- end -%>
But I might be sadly mistaken.