Change Rails Info controller to use the new table routes formatter

This commit is contained in:
Carlos Antonio da Silva 2013-01-05 11:48:50 -02:00
parent 6cc42464fe
commit f2caf6e433
2 changed files with 2 additions and 5 deletions

View File

@ -16,7 +16,7 @@ class Rails::InfoController < ActionController::Base # :nodoc:
end
def routes
@routes = ActionDispatch::Routing::RoutesInspector.new.collect_routes(_routes.routes)
@routes_inspector = ActionDispatch::Routing::RoutesInspector.new(_routes.routes)
end
protected

View File

@ -6,7 +6,4 @@
Routes match in priority from top to bottom
</p>
<%# actionpack/lib/action_dispatch/middleware/templates %>
<%= render layout: "routes/route_wrapper" do %>
<%= render partial: "routes/route", collection: @routes %>
<% end %>
<%= @routes_inspector.format(ActionDispatch::DebugExceptions::TableRoutesFormatter.new(self)) %>