Class: Ecrire::ThemeController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Ecrire::ThemeController
- Defined in:
- lib/ecrire/app/controllers/ecrire/theme_controller.rb
Overview
The class any controller in a theme needs to inherit from
ThemeController
provides boilerplate code so the blog handles a few cases for you.
Ecrire will try to redirect to the homepage when it meets selected exceptions Currently, the following 3 exceptions are handled:
-
ActiveRecord::RecordNotFound
-
ActionController::RoutingError
-
ActionView::ActionViewError