Sha256: 1a7d78cee5253d51f578efaf6a77d779ea53fef9aff0e722e75e00e2c60e2108

Contents?: true

Size: 1.37 KB

Versions: 16

Compression:

Stored size: 1.37 KB

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] -%>"><% if source.is_a?(Array) -%><%= source[0] -%><span class="error_highlight"><%= source[1] -%></span><%= source[2] -%>
<% else -%>
<%= source -%>
<% end -%></div><% end -%>
</pre>
</td>
          </tr>
        </table>
      </div>
      <%- unless self.error_highlight_available? -%>
        <p class="error_highlight_tip">Tip: You may want to add <code>gem 'error_highlight', '&gt;= 0.4.0'</code> into your Gemfile, which will display the fine-grained error location.</p>
      <%- end -%>
    </div>
  <% end %>
<% end %>

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
actionpack-7.1.5 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.4.2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.4.1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.4 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actionpack-7.1.3.4/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.3.4 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.3.2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.3.1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.3 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.0 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.0.rc2 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.0.rc1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb
actionpack-7.1.0.beta1 lib/action_dispatch/middleware/templates/rescues/_source.html.erb