method

format_routes

rails latest stable - Class: ActionDispatch::Routing::RoutesInspector

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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