Module: Sitepress::SitePages

Extended by:
ActiveSupport::Concern
Included in:
SiteController
Defined in:
app/controllers/concerns/sitepress/site_pages.rb

Overview

Serves up Sitepress site pages in a rails application. This is mixed into the Sitepress::SiteController, but may be included into other controllers for static page behavior.

Constant Summary collapse

DEFAULT_PAGE_RAILS_FORMATS =

Rails 5 requires a format to be given to the private layout method to return the path to the layout.

[:html].freeze

Instance Method Summary collapse

Instance Method Details

#showObject


18
19
20
# File 'app/controllers/concerns/sitepress/site_pages.rb', line 18

def show
  render_page current_page
end