How to remove the delete option form activeAdmin?

Kareem Hashem picture Kareem Hashem · Oct 12, 2011 · Viewed 18.3k times · Source

in rails gem active admin I want to remove the delete option form the default_actions while I still need the edit and show action , is there any way to do it ?

Answer

Thomas Watson picture Thomas Watson · Oct 12, 2011

You add a call to actions to every Active Admin resource:

ActiveAdmin.register Foobar do
  actions :all, :except => [:destroy]
end