Module: Cms::Acts::PageHelper
- Defined in:
- lib/cms/acts/content_page.rb
Instance Method Summary collapse
-
#cms_toolbar ⇒ Object
Do not show the toolbar on Acts::As::ContentPages.
-
#page_title(title = nil) ⇒ Object
By default, the Name of the controller (minus ‘Controller’ will be the page name.) Unless @page_title is set in the controller action.
Instance Method Details
#cms_toolbar ⇒ Object
Do not show the toolbar on Acts::As::ContentPages
32 33 34 |
# File 'lib/cms/acts/content_page.rb', line 32 def "" end |
#page_title(title = nil) ⇒ Object
By default, the Name of the controller (minus ‘Controller’ will be the page name.) Unless @page_title is set in the controller action
22 23 24 25 26 27 28 |
# File 'lib/cms/acts/content_page.rb', line 22 def page_title(title=nil) if title @page_title = title end return controller.class.name.gsub("Controller", "").titleize unless @page_title @page_title end |