Module: Handcart::ApplicationHelper

Defined in:
app/helpers/handcart/application_helper.rb

Instance Method Summary collapse

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, options={})
  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, options={})
  content_for(:title) { page_title }
  if show_sub_title
    sub_title(page_title)
  end
end