Module: Cms::ContentPage
- Extended by:
- ActiveSupport::Concern
- Included in:
- Sites::PasswordsController, Sites::SessionsController
- Defined in:
- lib/cms/content_page.rb
Overview
Add to controllers to allow them to behave like pages. A newer version of Acts::ContentPage
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#cms_template ⇒ Object
Returns the page template that should be used to render this page.
- #content_page_layout ⇒ Object
Instance Method Details
#cms_template ⇒ Object
Returns the page template that should be used to render this page.
45 46 47 |
# File 'lib/cms/content_page.rb', line 45 def cms_template "layouts/#{normalize_layout(self.class, self.class.template_name)}" end |
#content_page_layout ⇒ Object
49 50 51 |
# File 'lib/cms/content_page.rb', line 49 def content_page_layout 'cms/content_page' end |