Class: RnStack::PagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rn_stack/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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