From 80795e02ca7025651ee7abc2e85e123e5e0a7ad6 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Sat, 5 Jan 2013 13:59:00 +0100 Subject: display mountable engine routes on RoutingError. --- .../action_dispatch/middleware/templates/rescues/routing_error.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb') 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 77804a8cbb..9463da520b 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb @@ -15,6 +15,7 @@ <% end %> <%= render template: "rescues/_trace" %> +<% if @routes_inspector %>

Routes

@@ -23,6 +24,5 @@ Routes match in priority from top to bottom

-<%= render layout: "routes/route_wrapper" do %> - <%= render partial: "routes/route", collection: @routes %> + <%= @routes_inspector.format(ActionDispatch::DebugExceptions::TableRoutesFormatter.new(self)) %> <% end %> -- cgit v1.2.3