开发者

Bulk Actions on Rails Restful Resources

开发者 https://www.devze.com 2022-12-09 10:55 出处:网络
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 an开发者_StackOverflow中文

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 an开发者_StackOverflow中文版d 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

0

精彩评论

暂无评论...
验证码 换一张
取 消