def full_title(page_title = '')
      aname = Rails.application.app_name.strip
      return aname if page_title.blank?
      "#{page_title.strip} | #{aname}"
    end
def full_title(page_title = '')
      aname = Rails.application.app_name.strip
      return aname if page_title.blank?
      "#{page_title.strip} | #{aname}"
    end
Gets the full title of the page.

 If +page_title+ is left blank, then the +app_name+ attribute of your application is returned.
 Otherwise the +app_name+ attribute is appended to the +page_title+ after a pipe symbol.

     # app_name = 'My App'
     full_title              # 'My App'
     full_title 'Welcome'    # 'Welcome | My App'