Module: ApplicationHelper
- Defined in:
- lib/generators/frame/layout/templates/app/helpers/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#default_title(page_title) ⇒ Object
10 11 12 |
# File 'lib/generators/frame/layout/templates/app/helpers/application_helper.rb', line 10 def default_title(page_title) title page_title unless content_for?(:title) end |
#logo ⇒ Object
14 15 16 |
# File 'lib/generators/frame/layout/templates/app/helpers/application_helper.rb', line 14 def logo image_tag("econ_f_64.gif", {:alt => "eContriver", :class => "round", :style => "width: 64px; height: 64px"}) end |
#title(page_title) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/generators/frame/layout/templates/app/helpers/application_helper.rb', line 2 def title(page_title) view_flow.content.delete(:title) content_for :title do page_title end page_title end |