diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-10 22:46:45 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-10 22:46:45 +0000 |
commit | ebf424061dba2454b3e1d746e2515b10e76a5be8 (patch) | |
tree | 6a6ae10a618a0cbe7d34e72564bc11760333628b /actionpack/lib/action_controller/templates/rescues | |
parent | 7ed4b745fcd2c57747ed21ffa3a7a0cd92f621af (diff) | |
download | rails-ebf424061dba2454b3e1d746e2515b10e76a5be8.tar.gz rails-ebf424061dba2454b3e1d746e2515b10e76a5be8.tar.bz2 rails-ebf424061dba2454b3e1d746e2515b10e76a5be8.zip |
Fixed three issues with retrying breakpoints #417 [Florian Gross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@370 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 | 11 |
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" /> |