Class: Geri::PagesController

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

Instance Method Summary collapse

Instance Method Details

#showObject



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

def show
  page = Page.find(params[:path])
  @metadata = page.
  render(file: page.file, layout: 'layout.html.erb', locals: {foo: 'bar'})
end