diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb index 376a7f1aec..071dd7daf1 100644 --- a/actionpack/lib/action_controller/rescue.rb +++ b/actionpack/lib/action_controller/rescue.rb @@ -25,7 +25,10 @@ module ActionController #:nodoc: # Exception handler called when the performance of an action raises an exception. def rescue_action(exception) log_error(exception) unless logger.nil? - erase_render_results if performed? + if performed? + erase_render_results + erase_redirect_results + end if consider_all_requests_local || local_request? rescue_action_locally(exception)