<% @source_extract = @exception.source_extract(0, :html) %>

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

Showing <%= @exception.file_name %> where line #<%= @exception.line_number %> raised:

<%= h @exception.message %>

Extracted source (around line #<%= @exception.line_number %>):

            <% @source_extract.keys.each do |line_number| %>
<%= line_number -%>
            <% end %>
          
<% @source_extract.each do |line, source| -%>
"><%= source -%>
<% end -%>

<%= @exception.sub_template_message %>

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