- Extended by:
- Included in:
- Defined in:
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.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
18 19 20
# File 'app/controllers/concerns/sitepress/site_pages.rb', line 18 def show render_page current_page end