app/helpers/application_helper.rb
# helper method for defining page titles
helper method for defining page titles
helper method for defining page titles
def title(title = nil)
    if title.present? && !ENV['DEFAULT_META_TITLE'].blank?
      content_for :title, title + ' | ' + ENV['DEFAULT_META_TITLE']
    elsif title.present?
      content_for :title, title
    else
      content_for :title, ENV['DEFAULT_META_TITLE']
    end
  end
def title ( title = nil ) if title . present? && ! ENV [ 'DEFAULT_META_TITLE' ] . blank? content_for :title , title + ' | ' + ENV [ 'DEFAULT_META_TITLE' ] elsif title . present? content_for :title , title else content_for :title , ENV [ 'DEFAULT_META_TITLE' ] end end
helper method for defining page titles
helper method for defining page titles
title