Skip to content

Hide Default Actions or Sidebars

HappySoft edited this page Jun 14, 2012 · 2 revisions

Action Items and sidebar sections now both take an :if option. You can pass in a proc that will be called in the context of the view. To hide the default actions items, use config.clear_action_items! or to hide the default sidebars, use config.clear_sidebar_sections!

For thorough examples, take a look at the CanCan docs on the wiki

in your activeadmin model

ActiveAdmin.register LicensePlate do
  config.clear_action_items!
...
end
Clone this wiki locally