Class: StaticController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- StaticController
- Defined in:
- lib/generators/ember_seo/templates/static_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 |
# File 'lib/generators/ember_seo/templates/static_controller.rb', line 3 def show file_name = request.params["_escaped_fragment_"] file_name = "index" unless file_name.present? render file: "public/static/#{file_name}.html", layout: false end |