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/journey
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
..
gtg update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00
nfa Fix indentation issuing warning 2012-12-20 20:19:36 -02:00
nodes update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00
path update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00
router update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00
visualizer
backwards.rb :nodoc: Journey because is not part of the public API [ci skip] 2012-12-19 19:24:25 -05:00
formatter.rb Raise correct exception now Journey is integrated. 2013-01-15 17:21:33 +00:00
parser.rb :nodoc: Journey because is not part of the public API [ci skip] 2012-12-19 19:24:25 -05:00
parser.y
parser_extras.rb update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00
route.rb Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
router.rb Add support for other types of routing constraints 2013-01-15 17:21:33 +00:00
routes.rb access @path and @routes via reader methods in journey 2013-01-07 17:37:02 +03:00
scanner.rb update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00
visitors.rb update AD::Journey to follow Rails coding conventions 2012-12-20 15:42:39 -05:00