Module: HappyTitles::Helpers
- Defined in:
- lib/happy-titles/helpers.rb
Instance Method Summary collapse
Instance Method Details
#page_title(key = nil) ⇒ Object
12 13 14 |
# File 'lib/happy-titles/helpers.rb', line 12 def page_title(key = nil) content_tag(:title, render_happy_titles_template(key)) end |
#title(title = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/happy-titles/helpers.rb', line 4 def title(title = nil) if title @happy_titles_page_title = title else @happy_titles_page_title end end |