Sha256: df1e543052ea0e79e35e6348d7d1cda6fd0769ebca12cc409edc4d708025ad27
Contents?: true
Size: 781 Bytes
Versions: 38
Compression:
Stored size: 781 Bytes
Contents
<% if exception.respond_to?(:original_message) && exception.respond_to?(:corrections) %> <div class="exception-message"> <%= simple_format h(exception.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.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.message), { class: "message" }, wrapper_tag: "div" %> </div> <% end %>
Version data entries
38 entries across 36 versions & 4 rubygems