aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml')
-rw-r--r--actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml11
1 files changed, 7 insertions, 4 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 afdd19c6c1..aaeebba6f4 100644
--- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
+++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
@@ -1,10 +1,13 @@
<% if defined?(Breakpoint) %>
<br /><br />
- <%= form_tag({}, "method" => @request.method) %>
+ <%= form_tag({:params => {}, :only_path => true}, "method" => @request.method) %>
<input type="hidden" name="BP-RETRY" value="1" />
-
- <% for key, value in @request.params %>
- <input type="hidden" name="<%= key %>" value="<%= value %>" />
+
+ <% for key, values in @params %>
+ <% next if key == "BP-RETRY" %>
+ <% for value in Array(values) %>
+ <input type="hidden" name="<%= key %>" value="<%= value %>" />
+ <% end %>
<% end %>
<input type="submit" value="Retry with Breakpoint" />