1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch
Sammy Larbi 2fae37f0ac Allow polymorphic routes with nil when a route can still be drawn
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
2014-08-31 11:39:46 -05:00
..
http Avoid duplicating routes for HEAD requests. 2014-08-21 16:35:39 +08:00
journey Avoid duplicating routes for HEAD requests. 2014-08-21 16:35:39 +08:00
middleware Don't rescue IPAddr::InvalidAddressError 2014-08-29 09:05:31 +02:00
request Log which keys were set to nil in deep_munge 2014-01-28 20:29:38 +01:00
routing Allow polymorphic routes with nil when a route can still be drawn 2014-08-31 11:39:46 -05:00
testing Add missing require 2014-08-18 21:33:00 -07:00
journey.rb Integrate Journey into Action Dispatch 2012-12-19 22:13:08 +00:00
railtie.rb Add configuration option to optionally disable deep_munge 2013-12-05 12:08:34 +01:00
routing.rb Add missing requires for require 'action_dispatch/routing' 2014-05-15 06:03:23 +01:00