Class: Ecrire::ThemeController

Inherits:
ApplicationController show all
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

Direct Known Subclasses

PostsController, StaticController, TagsController

Method Summary

Methods inherited from ApplicationController

#current_user, #signed_in?, #url