app/helpers/application_helper.rb
# returns the full title on a per-page basis
returns the full title on a per-page basis
returns the full title on a per - page basis
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
# mothod def. optional arg # variable assigment # boolean test # implicit return #string concatenation
page_title
<not_specific>