Search code examples
ruby-on-railsrubygemsactiveadmin

How to remove the delete option form activeAdmin?


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 ?


Solution

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

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