# Update All using Checkboxes

**URL:** <https://www.ruby-forum.com/t/update-all-using-checkboxes/126480>\
**Category:** Rails\
**Created:** [January 18, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/update-all-using-checkboxes/126480 "2008-01-18T16:52:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 18, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/update-all-using-checkboxes/126480/1 "2008-01-18T16:52:54Z")

</div>

So I have a list of jobs which I show like this. (cleaned up…)

\_list.rhtml

\<% for job in @jobs %\>

\<% 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.

But don’t know what the form header or submit buttons should look like  
to get me the data in the controller.

| \<%= job.name %\> |
| \<%= check\_box\_tag "job\_ids[]", job.id %\> |
