Class: Simplec::PagesController

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

Instance Method Summary collapse

Instance Method Details

#showObject


6
7
8
9
# File 'app/controllers/simplec/pages_controller.rb', line 6

def show
  @page = page("/#{params[:path]}")
  render layout: layout(@page)
end