diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-18 15:01:58 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-18 15:01:58 +0000 |
commit | 3e6fe858b6a785f857c6a752410107bd824747eb (patch) | |
tree | 7eb1c1ec6190cdad8c8d0803779f4301b4177313 /actionpack/lib | |
parent | d678997688f2e455088cd09b0edd25c7f96c3787 (diff) | |
download | rails-3e6fe858b6a785f857c6a752410107bd824747eb.tar.gz rails-3e6fe858b6a785f857c6a752410107bd824747eb.tar.bz2 rails-3e6fe858b6a785f857c6a752410107bd824747eb.zip |
Added POST support for the breakpoint retries, so form processing that raises an exception can be retried with the original request [Florian Gross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml | 13 |
1 files changed, 12 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 c993fb3b19..afdd19c6c1 100644 --- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml @@ -1,4 +1,15 @@ -<% if defined?(Breakpoint) then %><a href="?BP-RETRY=1">Retry with Breakpoint</a><% end %> +<% if defined?(Breakpoint) %> + <br /><br /> + <%= form_tag({}, "method" => @request.method) %> + <input type="hidden" name="BP-RETRY" value="1" /> + + <% for key, value in @request.params %> + <input type="hidden" name="<%= key %>" value="<%= value %>" /> + <% end %> + + <input type="submit" value="Retry with Breakpoint" /> + </form> +<% end %> <% request_parameters_without_action = @request.parameters.clone |