Module: Cms::ContentPage::ClassMethods
- Defined in:
- lib/cms/content_page.rb
Instance Method Summary collapse
-
#template(template_name, options = {}) ⇒ Object
Specify which CMS template should be used for this controller.
Instance Method Details
#template(template_name, options = {}) ⇒ Object
Specify which CMS template should be used for this controller. Works similarly to ActionController::Base#layout. Will use the named template from the appropriate directory (typically app/views/layouts/templates)
The default CMS layout will be used if no template is specified.
37 38 39 40 |
# File 'lib/cms/content_page.rb', line 37 def template(template_name, ={}) self.template_name = template_name.to_s self. = end |