Class: Geri::PagesController

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

Instance Method Summary collapse

Instance Method Details

#showObject



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

def show
  page      = Page.find(params[:path], current_site, lookup_context)
  @metadata = page.
  render inline: page.content, layout: 'layout.html.erb'
end