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



14
15
16
17
18
# File 'app/controllers/tomify/public/pages_controller.rb', line 14

def root
  @page = root_page

  render_template
end

#showObject



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

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

  render_template
end