From 3a98877d7301abfa68787bc7bf441cbb5e3a88b1 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Thu, 19 Jun 2014 13:00:46 -0700 Subject: ErrorsController shouldn't inherit ApplicationController, but ActionController::Base Inheriting `ApplicationController` often causes an issue as it always has before/after actions. It should encourage to use `ActionController::Base` instead. [ci skip] --- guides/source/action_controller_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index 0d1bd2061d..57097ab146 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -1191,7 +1191,7 @@ Create the controller and views. * `app/controllers/errors_controller.rb` ```ruby - class ErrorsController < ApplicationController + class ErrorsController < ActionController::Base layout 'error' def not_found -- cgit v1.2.3