Module: ApplicationHelper

Defined in:
lib/generators/turbolog/templates/app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#title(page_title = '') ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/generators/turbolog/templates/app/helpers/application_helper.rb', line 2

def title(page_title = '')
  base_title = "Greeting"
  if page_title.empty?
  	base_title
  else
  	page_title + " | " + base_title
  end
end