How to perform bulk actions using Active Admin

In Active Admin, you can add a check box to each element on the index page (this is not difficult) and add some menu to perform group actions for all selected elements, for example, delete all selected elements at once.

I cannot find another way to do this than to create a custom page, but I would not want to do this; It seems to me that this is too much.

+6
source share
3 answers
+1
source

It works using the specified branch, but not on the user panel, from what I see.

We are working on an index:

index do selectable_column column :id column :name 

But can't get him to work on the show:

 panel "Children - Process Nodes" do text_node link_to "New", new_admin_process_node_path(:parent_id => department_node.id) unless department_node.children.empty? table_for department_node.children do column :id column :name 

selectable_column inside table_for does not work.

undefined local variable or `selectable_column 'method for #

Any idea?

thanks

+20
source

I believe that there is no way to do this using the ActiveAdmin master branch, but exit the batch editing branch

+3
source

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


All Articles