Class: Page

Inherits:
ActiveRecord::Base
  • Object
show all
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

Instance Method Details

#template_pathString

Returns the path to the Page’s template.

Returns:

  • (String)

    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