Sha256: 49fb24d0db4e20316cf8ac1e96e9cdb8d7445a0f0f0c147373c1cdd6480a3f7a

Contents?: true

Size: 963 Bytes

Versions: 51

Compression:

Stored size: 963 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

51 entries across 51 versions & 11 rubygems

Version Path
actionpack_csi-2.3.5.p8 lib/action_controller/templates/rescues/_trace.erb
actionpack_csi-2.3.5.p7 lib/action_controller/templates/rescues/_trace.erb
actionpack_csi-2.3.5.p6 lib/action_controller/templates/rescues/_trace.erb
webroar-0.5.0 src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.2.4 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.2.2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.2.1 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.9 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.8 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.7 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.6 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiantcms-couchrest_model-0.1.5 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.7.2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
webroar-0.4.0 src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.8.2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
radiant-0.9.0.rc2 vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb
webroar-0.3.1 src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb