Displaying 1 result from an estimated 1 matches for "rentals_url".
Did you mean:
rental_url
2006 Dec 17
2
Route generation and clash prevention
...ntals|
rentals.resources :customers
end
map.resources :customers do |customers|
customers.resources :rentals
end
These map blocks introduce ambiguity about what rental_url(1,5) should
generate - /movies/1/rentals/5 or /customers/1/movies/5. The error
message pointing this out sucks (rentals_url failed to generate from
{:controller=>"rentals", :action=>"index"}, expected:
{:controller=>"rentals", :action=>"index"}, diff: {}), but I digress.
Instead of throwing an error in this kind of situation (which I imagine
would be relatively common...