diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-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 |