Class: TypeStation::PagesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @page = Page.root
  render_type_station
end

#showObject



10
11
12
13
# File 'app/controllers/type_station/pages_controller.rb', line 10

def show
  @page = Page.find_by_path(params[:path])
  render_type_station
end