Class: Cdx::StaticController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Cdx::StaticController
- Defined in:
- app/controllers/cdx/static_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
We don’t provide routes for this controller, you’ll need to define your own routing logic.
Methods inherited from ApplicationController
Methods included from ControllerHelpers::Settings
Methods included from ControllerHelpers::Seo
#canonical_url, #contextual_record, #meta_data, #meta_title, #open_graph_data
Instance Method Details
#show ⇒ Object
We don’t provide routes for this controller, you’ll need to define your own routing logic.
6 7 8 9 10 11 12 |
# File 'app/controllers/cdx/static_controller.rb', line 6 def show begin render "cdx/static/custom/#{@object.template}" rescue ActionView::MissingTemplate render :show end end |