Class: Page
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Page
- Extended by:
- FriendlyId
- Defined in:
- app/models/page.rb
Overview
Represents an individual site page, which has many ContentBlocks and has an associated template file.
Instance Method Summary collapse
-
#template_path ⇒ String
The path to the Page’s template.
Instance Method Details
#template_path ⇒ String
Returns the path to the Page’s template.
19 20 21 |
# File 'app/models/page.rb', line 19 def template_path template_path_from_slug(slug) end |