Module: Trestle::TitleHelper

Defined in:
app/helpers/trestle/title_helper.rb

Instance Method Summary collapse

Instance Method Details

#default_titleObject


7
8
9
# File 'app/helpers/trestle/title_helper.rb', line 7

def default_title
  action_name.titleize
end

#titleObject


3
4
5
# File 'app/helpers/trestle/title_helper.rb', line 3

def title
  content_for(:title) || default_title
end