mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2fae37f0ac
Suppose you have two resources routed in the following manner: ```ruby resources :blogs do resources :posts end resources :posts ``` When using polymorphic resource routing like `url_for([@blog, @post])`, and `@blog` is `nil` Rails should still try to match the route to the top-level posts resource. Fixes #16754 |
||
---|---|---|
.. | ||
endpoint.rb | ||
inspector.rb | ||
mapper.rb | ||
polymorphic_routes.rb | ||
redirection.rb | ||
route_set.rb | ||
routes_proxy.rb | ||
url_for.rb |