Sha256: 74136458b8c64014ff6f48d6257b89e9cf9809a854ace96af0f1c6979c72399f

Contents?: true

Size: 1004 Bytes

Versions: 121

Compression:

Stored size: 1004 Bytes

Contents

<% error_index = local_assigns[:error_index] || 0 %>

<% source_extracts.each_with_index do |source_extract, index| %>
  <% if source_extract[:code] %>
    <div class="source <%= "hidden" if show_source_idx != index %>" id="frame-source-<%= error_index %>-<%= index %>">
      <div class="info">
        Extracted source (around line <strong>#<%= source_extract[:line_number] %></strong>):
      </div>
      <div class="data">
        <table cellpadding="0" cellspacing="0" class="lines">
          <tr>
            <td>
              <pre class="line_numbers">
                <% source_extract[:code].each_key do |line_number| %>
<span><%= line_number -%></span>
                <% end %>
              </pre>
            </td>
<td width="100%">
<pre>
<% source_extract[:code].each do |line, source| -%><div class="line<%= " active" if line == source_extract[:line_number] -%>"><%= source -%></div><% end -%>
</pre>
</td>
          </tr>
        </table>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

121 entries across 115 versions & 10 rubygems

Version Path
actionpack-6.1.4.4 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.0.4.4 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.0.0.rc3 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.1.4.3 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.0.4.3 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.0.4.2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.1.4.2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.0.0.rc2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.0.0.rc1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/actionpack-6.1.4.1/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/actionpack-6.1.4.1/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.0.0.alpha2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.0.0.alpha1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.1.4.1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.0.4.1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/actionpack-6.1.4/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.1.4 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.0.4 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.0.3.7 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-6.1.3.2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb