diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-10-16 13:10:32 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-10-16 13:10:32 +0000 |
commit | 876e6607c9ae49f04a8ca63ce69afd270d532724 (patch) | |
tree | a9eac2e4c51f6241f67a3a49ee08f143920295aa /actionpack/lib | |
parent | a1f14d1a85b3abd36cd6cdd093d11fd4bbd4605e (diff) | |
download | rails-876e6607c9ae49f04a8ca63ce69afd270d532724.tar.gz rails-876e6607c9ae49f04a8ca63ce69afd270d532724.tar.bz2 rails-876e6607c9ae49f04a8ca63ce69afd270d532724.zip |
Add missing file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/templates/rescues/_trace.rhtml | 21 |
1 files changed, 21 insertions, 0 deletions
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"] +%> + +<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 %>
\ No newline at end of file |