app/helpers/application_helper.rb
def title
    base_title = "Ruby on Rails Tutorial Sample App"
    if @title.nil?
      base_title
    else
      "#{base_title} | #{@title}"
    end
  end
# Return a title on a per-page basis.
Return a title on a per-page basis.
Return a title on a per - page basis .
def title
    base_title = "Ruby on Rails Tutorial Sample App"
    if @title.nil?
      base_title
    else
      "#{base_title} | #{@title}"
    end
  end
def title base_title = "Ruby on Rails Tutorial Sample App" if @title . nil? base_title else "#{base_title} | #{@title}" end end
Return a title on a per-page basis.
Return a title on a per - page basis .