Module: Blocky::ApplicationHelper
- Defined in:
- app/helpers/blocky/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#body_class ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/helpers/blocky/application_helper.rb', line 4 def body_class @body_class ||= "default" body_class = "blocky" body_class += " " + controller.controller_name body_class += " " + controller.action_name body_class += " " + @body_class body_class end |
#page_title ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/helpers/blocky/application_helper.rb', line 13 def page_title page = @title if page "#{page} | #{site_title}" else site_title end end |
#site_title ⇒ Object
22 23 24 |
# File 'app/helpers/blocky/application_helper.rb', line 22 def site_title "Manage Content" end |