aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
blob: 324ef1567aa3a7d67d47ef360c3870542de9c1f8 (plain) (tree)
1
2
3
4
5
6
7
8
9

        
                                         
                                                                                                                               

         
 

                    
                                                                                                       
      
                                                     
 
                                                                                                      
 
                                               
 
                                                                               
                                                         
      
<header>
  <h1>
    <%= @exception.cause.class.to_s %> in
    <%= @request.parameters["controller"].camelize if @request.parameters["controller"] %>#<%= @request.parameters["action"] %>
  </h1>
</header>

<div id="container">
  <p>
    Showing <i><%= @exception.file_name %></i> where line <b>#<%= @exception.line_number %></b> raised:
  </p>
  <pre><code><%= h @exception.message %></code></pre>

  <%= render "rescues/source", source_extracts: @source_extracts, show_source_idx: @show_source_idx %>

  <p><%= @exception.sub_template_message %></p>

  <%= render "rescues/trace", traces: @traces, trace_to_show: @trace_to_show %>
  <%= render template: "rescues/_request_and_response" %>
</div>