Skip to content
bbenezech edited this page Jan 18, 2012 · 33 revisions

Before 01/17/2012, actions used to be standard and hard-coded. A community request was that they could be added/removed/customized.

This is now fully possible.

By default, to keep existing installation safe, all actions are added as they used to be.

Default is equivalent to:

# config/initilizers/rails_admin.rb
RailsAdmin.config do |config|
  config.actions do
    # root level actions
    dashboard
    # model scoped actions
    index
    new
    export
    history_index
    bulk_delete
    # object scoped actions
    show
    edit
    delete
    history_show
    show_in_app
  end
end

You can copy that block and remove/add actions (1), or pass a block to customize it. See specific action documentation for details.

(1) do not remove dashboard, index & show, they are needed, because some redirects may end up there.

Clone this wiki locally