문제

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.

도움이 되었습니까?

해결책 2

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.

다른 팁

This will work:

controller do
  def new
    @page_title = 'new title'
    super
  end

  def edit
    @page_title = 'edit title'
    super
  end
end
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top