Class: Exo::PagesController

Inherits:
ApplicationController show all
Includes:
RouteFilter
Defined in:
app/controllers/exo/pages_controller.rb

Instance Method Summary collapse

Instance Method Details

#serve_pageObject



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

def serve_page
  if tick.route.redirection?
    redirect_to tick.route.to_url
  else
    render tick.route.view_path, layout: tick.route.layout_path
  end
end