简体   繁体   中英

Bulk Actions on Rails Restful Resources

I am trying to implement a bulk update feature in a Rails app, the model I want to update is a restful resource. I need to display a table where each row is a single resource and has a check box. The user can check as many boxes as they like and then chose an action to perform on all of the selected resources, eg delete, change status etc.

Does anyone have a an idea of how best this fits into the rails restful way of doing things?

Thanks.

Ryan Bates has a couple of Railscasts covering this:

Update through checkboxes

Edit Multiple

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM