Changeset 8335
- Timestamp:
- 12/08/07 19:32:10 (10 months ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/base.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r8334 r8335 1 1 *SVN* 2 3 * Fix DoubleRenderError message and leave out mention of returning false from filters. Closes #10380 [fcheung] 2 4 3 5 * Clean up some cruft around ActionController::Base#head. Closes #10417 [ssoroka] trunk/actionpack/lib/action_controller/base.rb
r8334 r8335 71 71 72 72 class DoubleRenderError < ActionControllerError #:nodoc: 73 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\"."73 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\"." 74 74 75 75 def initialize(message = nil)