diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-13 02:03:50 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-11-13 02:03:50 +0000 |
commit | f0753992ab8cc9bbbf9b047fdc56f8899df5635e (patch) | |
tree | 6a56877dd03d0224ba3b8eb714a1c1877b55415c /actionpack/lib/action_controller/templates/rescues | |
parent | f8486e8f1087717e72f819921e281d3ae0aab291 (diff) | |
download | rails-f0753992ab8cc9bbbf9b047fdc56f8899df5635e.tar.gz rails-f0753992ab8cc9bbbf9b047fdc56f8899df5635e.tar.bz2 rails-f0753992ab8cc9bbbf9b047fdc56f8899df5635e.zip |
test controller rescues
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/templates/rescues')
-rw-r--r-- | actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml | 16 |
1 files changed, 8 insertions, 8 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 f2f5732ecd..fe60bfdd40 100644 --- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml @@ -10,7 +10,7 @@ <% begin %> <%= form_tag(request.request_uri, "method" => request.method) %> <input type="hidden" name="BP-RETRY" value="1" /> - + <% for key, values in params %> <% next if key == "BP-RETRY" %> <% for value in Array(values) %> @@ -26,19 +26,19 @@ <% end %> <% - request_parameters_without_action = request.parameters.clone - request_parameters_without_action.delete("action") - request_parameters_without_action.delete("controller") - - request_dump = request_parameters_without_action.inspect.gsub(/,/, ",\n") + clean_params = request.parameters.clone + clean_params.delete("action") + clean_params.delete("controller") + + request_dump = clean_params.empty? ? 'None' : clean_params.inspect.gsub(',', ",\n") %> <h2 style="margin-top: 30px">Request</h2> -<p><b>Parameters</b>: <%=h request_dump == "{}" ? "None" : request_dump %></p> +<p><b>Parameters</b>: <pre><%=h request_dump %></pre></p> <p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p> <div id="session_dump" style="display:none"><%= debug(request.session.instance_variable_get("@data")) %></div> <h2 style="margin-top: 30px">Response</h2> -<b>Headers</b>: <%=h response ? response.headers.inspect.gsub(/,/, ",\n") : "None" %><br/> +<p><b>Headers</b>: <pre><%=h response ? response.headers.inspect.gsub(',', ",\n") : 'None' %></pre></p> |