Sha256: 35b429eff3e7039a237e4b9abfef3f9d180f7612ce8efda9e07998cbe24cc7af

Contents?: true

Size: 966 Bytes

Versions: 95

Compression:

Stored size: 966 Bytes

Contents

<%
  traces = [
    ["Application Trace", @exception.application_backtrace],
    ["Framework Trace", @exception.framework_backtrace],
    ["Full Trace", @exception.clean_backtrace]
  ]
  names = traces.collect {|name, trace| name}
%>

<p><code>RAILS_ROOT: <%= defined?(RAILS_ROOT) ? RAILS_ROOT : "unset" %></code></p>

<div id="traces">
  <% names.each do |name| -%>
    <%
      show = "document.getElementById('#{name.gsub /\s/, '-'}').style.display='block';"
      hide = (names - [name]).collect {|hide_name| "document.getElementById('#{hide_name.gsub /\s/, '-'}').style.display='none';"}
    %>
    <a href="#" onclick="<%= hide %><%= show %>; return false;"><%= name %></a> <%= '|' unless names.last == name %>
  <% end -%>

  <% traces.each do |name, trace| -%>
    <div id="<%= name.gsub /\s/, '-' %>" style="display: <%= name == "Application Trace" ? 'block' : 'none' %>;">
      <pre><code><%= trace.join "\n" %></code></pre>
    </div>
  <% end -%>
</div>

Version data entries

95 entries across 95 versions & 6 rubygems

Version Path
radiant-0.6.1 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
radiant-0.6.0 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
radiant-0.6.2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
radiant-0.6.3 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
radiant-0.6.4 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
radiant-0.6.5.1 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.6.5 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.6.7 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.6.6 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.6.9 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.6.8 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
rq-3.4.0 rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
rq-3.3.0 rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml
spree-0.0.9 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
spree-0.2.0 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb