Class: Tomify::Public::PagesController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/tomify/public/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#rootObject



8
9
10
11
12
# File 'app/controllers/tomify/public/pages_controller.rb', line 8

def root
  @page = root_page

  render_template
end

#showObject



2
3
4
5
6
# File 'app/controllers/tomify/public/pages_controller.rb', line 2

def show
  @page = Tomify.models.page.find_by(path: params[:path]) || not_found

  render_template
end