diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:21:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:21:47 +0000 |
commit | 2e766b159f597f4da55a4cd57c20a9d8c34dd3e7 (patch) | |
tree | 1826348a7ec405d12a9bc80d7bc37601a0c7b86b /actionpack/lib | |
parent | 3c6b7a219142907416780501dd8e7d068a802bc4 (diff) | |
download | rails-2e766b159f597f4da55a4cd57c20a9d8c34dd3e7.tar.gz rails-2e766b159f597f4da55a4cd57c20a9d8c34dd3e7.tar.bz2 rails-2e766b159f597f4da55a4cd57c20a9d8c34dd3e7.zip |
Fixed that some 500 rescues would cause 500's themselves because the response had not yet been generated #6329 [cmselmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml index d949ffc837..f2f5732ecd 100644 --- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml @@ -41,4 +41,4 @@ <h2 style="margin-top: 30px">Response</h2> -<b>Headers</b>: <%=h response.headers.inspect.gsub(/,/, ",\n") %><br/> +<b>Headers</b>: <%=h response ? response.headers.inspect.gsub(/,/, ",\n") : "None" %><br/> |