This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/helpers/application_helper.rb

10 lines
242 B
Ruby

module ApplicationHelper
##
# Returns the title for a page. This could be a Page title or something else.
#
def page_title
return @page.title if @page
"BarleySodas :: #{controller_class_name.gsub(/Controller/, '')}"
end
end