Skip to content
hoverlover edited this page Apr 9, 2012 · 6 revisions

If you'd like to override the page titles, follow this pattern (from #184)


ActiveAdmin.register Post do
  # DO THIS
  show :title => :my_title_method do
    # ...
  end
  # OR THIS
  show :title => proc{ post.title } do
     # ...
  end
end

Custom actions

If you would like to set the title on a custom action, for example a collection_action, you can do this:

ActiveAdmin.register Post do
  collection_action :import do
    @page_title = "Import Posts"
  end
end
Clone this wiki locally