class Ecrire::ThemeController < ApplicationController

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