Class: RnStack::PagesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RnStack::PagesController
- Defined in:
- app/controllers/rn_stack/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/rn_stack/pages_controller.rb', line 3 def show render RnStack::Layout.new(title: params[:page_path].titleize) { render_to_string(file: Rails.root.join("app/pages", "#{params[:page_path]}.html.erb"), layout: false) } end |