Sha256: 87fd2be4ba343a479d3494bf55d8353d0ed9861d127c03765fce6cf1d6ab6115

Contents?: true

Size: 1.46 KB

Versions: 38

Compression:

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

<main role="main" 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="#" onclick="return toggle(<%= wrapper.exception.object_id %>)">
        <%= wrapper.exception.class.name %>: <%= h wrapper.exception.message %>
      </a>
    </div>

    <div id="<%= wrapper.exception.object_id %>" class="hidden">
      <%= 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" %>
</main>

Version data entries

38 entries across 36 versions & 4 rubygems

Version Path
actionpack-7.0.8.7 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.8.6 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.8.5 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.8.4 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.8.1 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.8 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.7.2 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.7.1 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.7 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.6 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.5.1 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
actionpack-7.0.5 lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb