Module: ApplicationHelper

Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#full_title(page_title = '') ⇒ Object

Returns the full title on a per-page basis. # Documentation comment


4
5
6
7
8
9
10
11
# File 'app/helpers/application_helper.rb', line 4

def full_title(page_title = '')                     # Method def, optional arg
  base_title = "Test Rig App"  					  # Variable assignment
  if page_title.empty?                              # Boolean test
    base_title                                      # Implicit return
  else
    page_title + " | " + base_title                 # String concatenation
  end
end