Sha256: 342dbc3e1c01c6cd8e0e4fb52382da7e13ca9de7a046002cf3ade4a5a974a5d1

Contents?: true

Size: 969 Bytes

Versions: 32

Compression:

Stored size: 969 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.join %><%= 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><%=h trace.join "\n" %></code></pre>
    </div>
  <% end %>
</div>

Version data entries

32 entries across 32 versions & 9 rubygems

Version Path
actionpack-2.3.18 lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.17-rack-upgrade-2.3.17 lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.17 lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.16 lib/action_controller/templates/rescues/_trace.erb
actionpack-rack-upgrade-2-2.3.16 lib/action_controller/templates/rescues/_trace.erb
actionpack-rack-upgrade-2-2.3.15 lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.15 lib/action_controller/templates/rescues/_trace.erb
actionpack-rack-upgrade-2.3.16 lib/action_controller/templates/rescues/_trace.erb
actionpack-rack-upgrade-2.3.15 lib/action_controller/templates/rescues/_trace.erb
actionpack-rack-upgrade-2.3.14 lib/action_controller/templates/rescues/_trace.erb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/templates/rescues/_trace.erb
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionpack-2.3.12/lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.14 lib/action_controller/templates/rescues/_trace.erb
kajam-1.0.3.rc2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.12 lib/action_controller/templates/rescues/_trace.erb
radiant-1.0.0.rc2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-1.0.0.rc1 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
actionpack-2.3.11 lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.4 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.3 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb