I am trying to change the page title to be the name of the item you are actually editing when you are on the edit page. I read in the active admin docs that you should use @page_title. The problem is I don't know where to put this for it to work for the edit page.
Asked
Active
Viewed 1,202 times
2

Peter DeWeese
- 18,141
- 8
- 79
- 101

NineBlindEyes
- 579
- 8
- 18
-
Possible duplicate of [Active Admin: How to set page title?](https://stackoverflow.com/questions/16905616/active-admin-how-to-set-page-title) – Peter DeWeese Jun 15 '18 at 15:29
2 Answers
3
This will work:
controller do
def new
@page_title = 'new title'
super
end
def edit
@page_title = 'edit title'
super
end
end

Jakub
- 733
- 5
- 20
-1
I posted this in the active admin google group and they are looking to add this ability in to the next update. If they end up adding it i will post some info here on how it is accomplished.

NineBlindEyes
- 579
- 8
- 18