diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-12-08 19:32:10 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-12-08 19:32:10 +0000 |
commit | 37b874bb4d5130e222224089fc77c5b58282da95 (patch) | |
tree | ee73ab6554b670b88ed3bd22680b525ea6773e4e /actionpack/lib/action_controller | |
parent | d1c6349e5872bcf5ce7fa1adcac76476fbe6fa78 (diff) | |
download | rails-37b874bb4d5130e222224089fc77c5b58282da95.tar.gz rails-37b874bb4d5130e222224089fc77c5b58282da95.tar.bz2 rails-37b874bb4d5130e222224089fc77c5b58282da95.zip |
Fix DoubleRenderError message and leave out mention of returning false from filters. Closes #10380 [fcheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 7cd7ebcfbb..b5c4780f52 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -70,7 +70,7 @@ module ActionController #:nodoc: end class DoubleRenderError < ActionControllerError #:nodoc: - DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...) and return\". Finally, note that to cause a before filter to halt execution of the rest of the filter chain, the filter must return false, explicitly, so \"render(...) and return false\"." + DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...) and return\"." def initialize(message = nil) super(message || DEFAULT_MESSAGE) |