Sha256: 948a244d8eb78f3953e3edc527e357ca64dec821907453451b336cb7feb65656

Contents?: true

Size: 1.25 KB

Versions: 44

Compression:

Stored size: 1.25 KB

Contents

<% @source_extract = @exception.source_extract(0, :html) %>
<header>
  <h1>
    <%= @exception.original_exception.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>

  <div class="source">
    <div class="info">
      <p>Extracted source (around line <strong>#<%= @exception.line_number %></strong>):</p>
    </div>
    <div class="data">
    <table cellpadding="0" cellspacing="0" class="lines">
      <tr>
        <td>
          <pre class="line_numbers">
            <% @source_extract.keys.each do |line_number| %>
<span><%= line_number -%></span>
            <% end %>
          </pre>
        </td>
<td width="100%">
<pre>
<% @source_extract.each do |line, source| -%><div class="line<%= " active" if line == @exception.line_number -%>"><%= source -%></div><% end -%>
</pre>
</td>
    </tr>
  </table>
</div>
</div>

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

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

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
actionpack-4.1.16 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.16.rc1 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.15 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.15.rc1 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.14.2 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.14.1 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionpack-4.1.13/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionpack-4.1.13/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionpack-4.1.13/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.14 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.14.rc2 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.14.rc1 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.13 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.13.rc1 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.12 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.12.rc1 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.11 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.10 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.10.rc4 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb
actionpack-4.1.10.rc3 lib/action_dispatch/middleware/templates/rescues/template_error.html.erb