Module: ApplicationHelper

Defined in:
lib/generators/chapter07/begin/templates/app/helpers/application_helper.rb,
lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#logoObject



12
13
14
# File 'lib/generators/chapter08_09/solutions/templates/app/helpers/application_helper.rb', line 12

def 
  image_tag("logo.png", :alt => "Sample App", :class => "round")
end

#titleObject



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

def title
  base_title = "Ruby on Rails Tutorial Sample App"
  if @title.nil?
    base_title
  else
    "#{base_title} | #{@title}"
  end
end