Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4395

Show
Ignore:
Timestamp:
06/01/06 16:00:15 (4 years ago)
Author:
minam
Message:

Add RouteSet::Mapper#named_route for compatibility with adding programmatically named routes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/routing.rb

    r4394 r4395  
    730730          @set.add_route(path, options) 
    731731        end 
    732      
     732 
     733        def named_route(name, path, options = {}) 
     734          @set.add_named_route(name, path, options) 
     735        end 
     736 
    733737        def method_missing(route_name, *args, &proc) 
    734738          super unless args.length >= 1 && proc.nil?