Mass Actions in Rails Restful Resources

I am trying to implement a bulk update function in a Rails application, the model I want to update is a backup resource. I need to display a table in which each row is a single resource and has a checkbox. The user can check as many fields as possible, and then select an action for all selected resources, for example, delete, change status, etc.

Does anyone have an idea of ​​how this fits best on the rails, a calm way of doing something?

Thanks.

+3
source share
1 answer

Ryan Bates has a couple of Railscasts spanning this:

Update via checkboxes

Change multiple

+5

Source: https://habr.com/ru/post/1720870/


All Articles