Sha256: ff860cc3b465d328224f955fa9805820f2350159799813b1ec5c18de917fca6c

Contents?: true

Size: 1.54 KB

Versions: 37

Compression:

Stored size: 1.54 KB

Contents

<header>
  <h1>
    <%= @exception.class.to_s %>
    <% if params_valid? && @request.parameters['controller'] %>
      in <%= @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%= @request.parameters['action'] %><% end %>
    <% end %>
  </h1>
</header>

<div id="container">
  <%= render "rescues/message_and_suggestions", exception: @exception %>
  <%= render "rescues/actions", exception: @exception, request: @request %>

  <%= render "rescues/source", source_extracts: @source_extracts, show_source_idx: @show_source_idx, error_index: 0 %>
  <%= render "rescues/trace", traces: @traces, trace_to_show: @trace_to_show, error_index: 0 %>

  <% if @exception.cause %>
    <h2>Exception Causes</h2>
  <% end %>

  <% @exception_wrapper.wrapped_causes.each.with_index(1) do |wrapper, index| %>
    <div class="details">
      <a class="summary" href="#" style="color: #F0F0F0; text-decoration: none; background: #C52F24; border-bottom: none;" onclick="return toggle(<%= wrapper.exception.object_id %>)">
        <%= wrapper.exception.class.name %>: <%= h wrapper.exception.message %>
      </a>
    </div>

    <div id="<%= wrapper.exception.object_id %>" style="display: none;">
      <%= render "rescues/source", source_extracts: wrapper.source_extracts, show_source_idx: wrapper.source_to_show_id, error_index: index %>
      <%= render "rescues/trace", traces: wrapper.traces, trace_to_show: wrapper.trace_to_show, error_index: index %>
    </div>
  <% end %>

  <%= render template: "rescues/_request_and_response" %>
</div>

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
actionpack-6.1.7.10 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.9 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.8 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.7 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.6 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.5 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.4 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.3 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.2 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7.1 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.7 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.6.1 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.6 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.5.1 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.5 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.4.7 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.4.6 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-6.1.4.5 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb