Class: StaticController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/generators/ember_seo/templates/static_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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