From 876e6607c9ae49f04a8ca63ce69afd270d532724 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sun, 16 Oct 2005 13:10:32 +0000 Subject: Add missing file git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../templates/rescues/_trace.rhtml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 actionpack/lib/action_controller/templates/rescues/_trace.rhtml (limited to 'actionpack/lib/action_controller/templates') diff --git a/actionpack/lib/action_controller/templates/rescues/_trace.rhtml b/actionpack/lib/action_controller/templates/rescues/_trace.rhtml new file mode 100644 index 0000000000..897320d767 --- /dev/null +++ b/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"] +%> + +
+ <% trace_names.each do |k| -%> +
;"> + <% trace_names.each do |ok| -%> + <%= ok %> <%= '|' unless trace_names.last == ok %> + <% end -%> +
<%= traces[k].join "\n" %>
+
+ <% end -%> +
+<% end %> \ No newline at end of file -- cgit v1.2.3