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.rhtml10
1 files changed, 9 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 aaeebba6f4..d807c4fb79 100644
--- a/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
+++ b/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml
@@ -1,6 +1,11 @@
+<% unless @exception.blamed_files.empty? %>
+ <a href="#" onclick="document.getElementById('blame_trace').style.display='block'; return false;">Show blamed files</a>
+ <pre id="blame_trace" style="display:none"><code><%=h @exception.describe_blame %></code></pre>
+<% end %>
+
<% if defined?(Breakpoint) %>
<br /><br />
- <%= form_tag({:params => {}, :only_path => true}, "method" => @request.method) %>
+ <% begin %><%= form_tag({:params => {}, :only_path => true}, "method" => @request.method) %>
<input type="hidden" name="BP-RETRY" value="1" />
<% for key, values in @params %>
@@ -12,6 +17,9 @@
<input type="submit" value="Retry with Breakpoint" />
</form>
+ <% rescue Exception => e %>
+ <%=h "Couldn't render breakpoint link due to #{e.class} #{e.message}" %>
+ <% end %>
<% end %>
<%