method
format_routes
rails latest stable - Class:
ActionDispatch::Routing::RoutesInspector
format_routes(formatter, filter, engine_name, routes)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 98
def format_routes(formatter, filter, engine_name, routes)
routes = filter_routes(routes, normalize_filter(filter)).map(&:to_h)
formatter.section_title "Routes for #{engine_name || "application"}" if @engines.any?
if routes.any?
formatter.header routes
formatter.section routes
else
formatter.no_routes engine_name, routes, filter
end
formatter.footer routes
end