Method: Goldberg::Helper#goldberg_title

Defined in:
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/helper.rb

#goldberg_titleObject

Renders the title of the page: either the ContentPage.name or the current controller and action.



9
10
11
12
13
14
15
16
17
# File 'lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/helper.rb', line 9

def goldberg_title
  if params[:controller] == 'goldberg/content_pages' and
      ( params[:action] == 'view' or 
        params[:action] == 'view_default')
    "#{@content_page.title}"
  else
    "#{params[:controller]} | #{params[:action]}" 
  end
end