aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYuki Nishijima <mail@yukinishijima.net>2014-06-19 13:00:46 -0700
committerYuki Nishijima <mail@yukinishijima.net>2014-06-19 13:08:14 -0700
commit3a98877d7301abfa68787bc7bf441cbb5e3a88b1 (patch)
treecb2cd6932651ec898aeb8b906af5d390cb8be549 /guides
parentd4ca0a44c7564f939bc3df2f770083d709c13e95 (diff)
downloadrails-3a98877d7301abfa68787bc7bf441cbb5e3a88b1.tar.gz
rails-3a98877d7301abfa68787bc7bf441cbb5e3a88b1.tar.bz2
rails-3a98877d7301abfa68787bc7bf441cbb5e3a88b1.zip
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]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 1 insertions, 1 deletions
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