app/helpers/application_helper.rb
# Returns the full title on a per-page basis.       # commento per documentazione
Returns the full title on a per-page basis.       # commento per documentazione
Returns the full title on a per - page basis . # commento per documentazione
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 .
# def del metodo, argomento opzionale # assegnamento di variabile # test booleano # rreturn implicito # concatenazione di stringhe
page_title
<not_specific>