actionpack/lib/action_dispatch/journey/routes.rb
# Add a route to the routing table.
Add a route to the routing table.
Add a route to the routing table .
def add_route(app, path, conditions, defaults, name = nil)
        route = Route.new(name, app, path, conditions, defaults)
        route.precedence = routes.length
        routes << route
        named_routes[name] = route if name && !named_routes[name]
        partition_route(route)
        clear_cache!
        route
      end
def add_route ( app , path , conditions , defaults , name = nil ) route = Route . new ( name , app , path , conditions , defaults ) route . precedence = routes . length routes << route named_routes [ name ] = route if name && ! named_routes [ name ] partition_route ( route ) clear_cache! route end
Add a route to the routing table.
Add a route to the routing table .
app
<not_specific>
path
<not_specific>
conditions
<not_specific>
defaults
<not_specific>
name
<not_specific>