Class: Exo::PagesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Exo::PagesController
- Includes:
- RouteFilter
- Defined in:
- app/controllers/exo/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#serve_page ⇒ Object
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 |