aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/templates/rescues
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-23 12:03:30 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-23 12:03:30 +0000
commit3306813be1efaa6f696142cd3977c25d09317875 (patch)
tree32a9cd6e0bee394771777a91ced6c089d81c6ccb /actionpack/lib/action_controller/templates/rescues
parent373adc7f86f68f7b16d136835bb9254aaffd797f (diff)
downloadrails-3306813be1efaa6f696142cd3977c25d09317875.tar.gz
rails-3306813be1efaa6f696142cd3977c25d09317875.tar.bz2
rails-3306813be1efaa6f696142cd3977c25d09317875.zip
Tweaked the rescue with breakpoint, still not perfect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@986 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.rhtml19
1 files changed, 10 insertions, 9 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 23e622a47a..5f10d91098 100644
--- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
+++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
@@ -7,18 +7,19 @@
<% if defined?(Breakpoint) %>
<br /><br />
- <% begin %><%= form_tag({:params => {}, :only_path => true}, "method" => @request.method) %>
- <input type="hidden" name="BP-RETRY" value="1" />
+ <% 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) %>
- <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 %>
- <% end %>
- <input type="submit" value="Retry with Breakpoint" />
- </form>
+ <input type="submit" value="Retry with Breakpoint" />
+ </form>
<% rescue Exception => e %>
<%=h "Couldn't render breakpoint link due to #{e.class} #{e.message}" %>
<% end %>