diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb index 6c903d6a17..ca85e6d048 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb @@ -1,24 +1,27 @@ -

Routing Error

-

<%=h @exception.message %>

-<% unless @exception.failures.empty? %> +
+

Routing Error

+
+
+

<%=h @exception.message %>

+ <% unless @exception.failures.empty? %> +

+

Failure reasons:

+
    + <% @exception.failures.each do |route, reason| %> +
  1. <%=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %>
  2. + <% end %> +
+

+ <% end %> + <%= render template: "rescues/_trace" %> + +

+ Routes +

+

-

Failure reasons:

-
    - <% @exception.failures.each do |route, reason| %> -
  1. <%=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %>
  2. - <% end %> -
+ Routes match in priority from top to bottom

-<% end %> -<%= render template: "rescues/_trace" %> - -

- Routes -

- -

- Routes match in priority from top to bottom -

<%= render layout: "routes/route_wrapper" do %> <%= render partial: "routes/route", collection: @routes %>