Id like to be able to create checkboxes for a list of objects. Then offer the user a number of actions to perform on the objects selected. I.e. delete, archive etc.
I know of ryan’s screencasts but it doesnt explain how to create links to multiple actions for the selected objects. It just showed him create a form_tag with a url to one action and a submit button.
I think you can do it in two ways.
First: you can add as many buttons to one form as you want:
And all of them are submitted to one action in which you can check:
Another way is to use some js. On example when user clicks on button “Action 2” it changes “action” parameter in form and submits data to this action.
EDIT:
In case of translated websites, you can do it like this:
and in controller:
And in en.yml add:
In pl.yml add:
and so on.