Class: Cdx::StaticController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cdx/static_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_ability

Methods included from ControllerHelpers::Settings

#current_settings

Methods included from ControllerHelpers::Seo

#canonical_url, #contextual_record, #meta_data, #meta_title, #open_graph_data

Instance Method Details

#showObject

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