method

add_route

add_route(name, mapping)
public

No documentation available.

# File actionpack/lib/action_dispatch/journey/routes.rb, line 66
      def add_route(name, mapping)
        route = mapping.make_route name, routes.length
        routes << route
        partition_route(route)
        clear_cache!
        route
      end