Class: Stopover::PagesController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

renderer

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/stopover/pages_controller.rb', line 5

def index
  render text: "Create views in app/views/#{Stopover.view_path} and then you can access #{request.fullpath}FILENAME without an extension."
end

#showObject



9
10
11
# File 'app/controllers/stopover/pages_controller.rb', line 9

def show
  render "#{Stopover.view_path}/#{params[:id]}", layout: Stopover.layout_name
end