Displaying 1 result from an estimated 1 matches for "vendorloc".
Did you mean:
vendorlib
2009 Aug 13
6
Strange Routing
...ng standard route
map.connect '':controller/:action/:id''
map.connect '':controller/:action/:id.:format''
Using console I did
>> rts = ActionController::Routing::Routes
>> rts.generate(:action => "edit", :controller => ''vendorlocations'', :id => 10)
=> "/vendorlocations/10/edit"
>> rts.recognize_path("/vendorlocations/10/edit")
=> {:action=>"10", :id=>"edit", :controller=>"vendorlocations"}
1) I don''t understand why the ID is where...