Sha256: 971a6c82af3cd55513a770d07c8529e583e1a8969858c89666cb97adc10dc07d

Contents?: true

Size: 760 Bytes

Versions: 41

Compression:

Stored size: 760 Bytes

Contents

<% if exception_wrapper.has_corrections? %>
  <div class="exception-message">
    <%= simple_format h(exception_wrapper.original_message), { class: "message" }, wrapper_tag: "div" %>
  </div>
  <%
    # The 'did_you_mean' gem can raise exceptions when calling #corrections on
    # the exception. If it does there are no corrections to show.
    corrections = exception_wrapper.corrections rescue []
  %>
  <% if corrections.any? %>
    <b>Did you mean?</b>
    <ul>
    <% corrections.each do |correction| %>
      <li class="correction"><%= h correction %></li>
    <% end %>
    </ul>
  <% end %>
<% else %>
  <div class="exception-message">
    <%= simple_format h(exception_wrapper.message), { class: "message" }, wrapper_tag: "div" %>
  </div>
<% end %>

Version data entries

41 entries across 41 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-8.0.1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-8.0.0.1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.2.2.1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.1.5.1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-8.0.0 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.2.2 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.1.5 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-8.0.0.rc2 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.2.1.2 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.1.4.2 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-8.0.0.rc1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.2.1.1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-7.1.4.1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
actionpack-8.0.0.beta1 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
omg-actionpack-8.0.0.alpha9 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
omg-actionpack-8.0.0.alpha8 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
omg-actionpack-8.0.0.alpha7 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
omg-actionpack-8.0.0.alpha4 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb
omg-actionpack-8.0.0.alpha3 lib/action_dispatch/middleware/templates/rescues/_message_and_suggestions.html.erb