Module: ApplicationHelper

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

Instance Method Summary collapse

Instance Method Details

#app_nameObject



2
3
4
# File 'lib/generators/bootswatch_rails/install/templates/app/helpers/application_helper.rb', line 2

def app_name
  "Demo Application"
end

#brand_logoObject



10
11
12
# File 'lib/generators/bootswatch_rails/install/templates/app/helpers/application_helper.rb', line 10

def 
  image_tag("Rails_logo_80.jpg")
end


22
23
24
# File 'lib/generators/bootswatch_rails/install/templates/app/helpers/application_helper.rb', line 22

def copyright_link
  "http://www.example.com/"
end


18
19
20
# File 'lib/generators/bootswatch_rails/install/templates/app/helpers/application_helper.rb', line 18

def copyright_text
  "Copyright Holder"
end


14
15
16
# File 'lib/generators/bootswatch_rails/install/templates/app/helpers/application_helper.rb', line 14

def copyright_year
  Time.now.year
end

#page_title(title_text) ⇒ Object



6
7
8
# File 'lib/generators/bootswatch_rails/install/templates/app/helpers/application_helper.rb', line 6

def page_title(title_text)
  content_for(:title) { "#{title_text} - #{app_name}" }
end