Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8335

Show
Ignore:
Timestamp:
12/08/07 19:32:10 (10 months ago)
Author:
rick
Message:

Fix DoubleRenderError message and leave out mention of returning false from filters. Closes #10380 [fcheung]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r8334 r8335  
    11*SVN* 
     2 
     3* Fix DoubleRenderError message and leave out mention of returning false from filters.  Closes #10380 [fcheung] 
    24 
    35* Clean up some cruft around ActionController::Base#head.  Closes #10417 [ssoroka] 
  • trunk/actionpack/lib/action_controller/base.rb

    r8334 r8335  
    7171 
    7272  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\".
    7474 
    7575    def initialize(message = nil)