1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
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
..
abstract Remove unnecessary begin..rescue..end, use only rescue 2013-01-06 15:41:14 +09:00
activerecord cleanup, remove trailing whitespace within actionpack 2012-10-27 16:03:18 +02:00
assertions test response assertions 2012-01-06 11:20:26 -08:00
controller Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
dispatch Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
fixtures Do not generate local vars for partials without object or collection 2013-01-08 09:15:20 -02:00
journey Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
lib/controller Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
routing add some tests, yay! 2012-02-22 11:05:03 -08:00
template Merge pull request #8938 from colinbm/date_select_value 2013-01-14 12:18:36 -08:00
tmp
abstract_unit.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
active_record_unit.rb we're not supporting SQLite 2 2012-12-24 12:23:39 +09:00
ts_isolated.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00