Permalink
Browse files

Add missing file

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a1f14d1 commit 876e6607c9ae49f04a8ca63ce69afd270d532724 @seckar seckar committed Oct 16, 2005
Showing with 21 additions and 0 deletions.
  1. +21 −0 actionpack/lib/action_controller/templates/rescues/_trace.rhtml
@@ -0,0 +1,21 @@
+
+<% if @exception %>
+<%
+ clean_backtrace = @exception.clean_backtrace
+ app_trace = @exception.application_backtrace
+ framework_trace = clean_backtrace - app_trace
+ traces = {"Application Trace" => app_trace, "Framework Trace" => framework_trace, "Full Trace" => clean_backtrace}
+ trace_names = ["Application Trace", "Framework Trace", "Full Trace"]
+%>
+
+<div id="traces">
+ <% trace_names.each do |k| -%>
+ <div id="<%= k.gsub /\s/, '-' %>" style="display: <%= k == "Application Trace" ? 'block' : 'none' %>;">
+ <% trace_names.each do |ok| -%>
+ <a href="#" onclick="document.getElementById('<%= k.gsub /\s/, '-' %>').style.display='none'; document.getElementById('<%= ok.gsub /\s/, '-' %>').style.display='block'; return false;"><%= ok %></a> <%= '|' unless trace_names.last == ok %>
+ <% end -%>
+ <pre><code><%= traces[k].join "\n" %></code></pre>
+ </div>
+ <% end -%>
+</div>
+<% end %>

0 comments on commit 876e660

Please sign in to comment.