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 @@ -
<%=h @exception.message %>-<% unless @exception.failures.empty? %> +
+
<%=h route.inspect.gsub('\\', '') %>
failed because <%=h reason.downcase %>-
<%=h route.inspect.gsub('\\', '') %>
failed because <%=h reason.downcase %>- Routes match in priority from top to bottom -
<%= render layout: "routes/route_wrapper" do %> <%= render partial: "routes/route", collection: @routes %>