Class: Public::PagesController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Public::PagesController
- Defined in:
- app/controllers/kms/public/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/kms/public/pages_controller.rb', line 7 def show page_result = Kms.template_manager.render(@page.register_id, @externals) result = Kms.template_manager.render(@template.register_id, @externals.merge(_inner_template: page_result)) render html: result.html_safe, status: (@page.not_found? ? :not_found : :ok) end |