[rspec-users] Troubles with route_for
lists at ruby-forum.com
Sat Jan 23 22:24:51 EST 2010
Hey guys. I have two different paths that lead to the same controller
map.connect 'foods/search/:name', :controller => 'foods', :action =>
map.food ':name', :controller => 'foods', :action =>
Unfortunately, the spec for the second route fails because #route_to
finds and uses the first route when generating the path for
:controller => 'foods', :action => 'search', :name => 'almonds'
Is there a solution to this problem?
Posted via http://www.ruby-forum.com/.
More information about the rspec-users