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/routing
Andrew White f1d8f2af72 Change the behavior of route defaults
This commit changes route defaults so that explicit defaults are no
longer required where the key is not part of the path. For example:

  resources :posts, bucket_type: 'posts'

will be required whenever constructing the url from a hash such as a
functional test or using url_for directly. However using the explicit
form alters the behavior so it's not required:

  resources :projects, defaults: { bucket_type: 'projects' }

This changes existing behavior slightly in that any routes which
only differ in their defaults will match the first route rather
than the closest match.

Closes #8814
2013-01-15 17:22:25 +00:00
..
inspector.rb Rename route_wrapper partial layout to table 2013-01-06 11:22:26 -02:00
mapper.rb Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
polymorphic_routes.rb Cleans and removes useless 'Examples' tag [ci skip] 2012-12-01 15:19:45 -05:00
redirection.rb Use merge! in some places to avoid creating extra hashes 2012-11-24 09:19:21 -02:00
route_set.rb Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
routes_proxy.rb Override respond_to? since we are also overriding method_missing. 2012-01-03 20:26:45 +01:00
url_for.rb Add script_name option description and example for #url_for options 2012-12-17 14:15:01 +11:00