Module: Handcart::ApplicationHelper
- Defined in:
- app/helpers/handcart/application_helper.rb
Instance Method Summary collapse
- #sub_title(sub_title, options = {}) ⇒ Object
- #title(page_title, show_sub_title = true, options = {}) ⇒ Object
Instance Method Details
#sub_title(sub_title, options = {}) ⇒ Object
10 11 12 |
# File 'app/helpers/handcart/application_helper.rb', line 10 def sub_title(sub_title, ={}) content_for(:sub_title) { sub_title } end |
#title(page_title, show_sub_title = true, options = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'app/helpers/handcart/application_helper.rb', line 3 def title(page_title, show_sub_title = true, ={}) content_for(:title) { page_title } if show_sub_title sub_title(page_title) end end |