app/helpers/application_helper.rb
# Returns the full title on a per-page basis. This is just documentation
Returns the full title on a per-page basis. This is just documentation
Returns the full title on a per - page basis . This is just documentation
def full_title(page_title = '') 
    base_title = "Ruby on Rails Tutorial Sample App" 
    if page_title.empty? 
      base_title 
    else
      page_title + " | " + base_title 
    end
  end
def full_title ( page_title = '' ) base_title = "Ruby on Rails Tutorial Sample App" if page_title . empty? base_title else page_title + " | " + base_title end end
Returns the full title on a per-page basis.
Returns the full title on a per - page basis .
#Method def, optional argument #variable assignment #boolean test #implicit return, returning the last statement evaluated, which is our var #string concatenation
page_title