forked from activeadmin/activeadmin
-
Notifications
You must be signed in to change notification settings - Fork 4
Set page title
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
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