Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable active_admin's batch action?

I want to use gem best_in_place in active_admin for in-place editing. However, whenever I press Enter, it seems that active_admin captures that events and directs to XXXController's batch_action method. which is not found...

However, if after editing. I click a blank area..the best_in_place works and the database is updated...

So..how to fix it?

like image 633
HanXu Avatar asked Mar 18 '12 07:03

HanXu


1 Answers

A bit late but for everyone who comes here via Google:

    ActiveAdmin.register Product do
      config.batch_actions = false
      ...
    end
like image 79
chrpes Avatar answered Oct 16 '22 23:10

chrpes