diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-21 14:54:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-21 15:03:56 -0700 |
commit | 476dce4fc4bba7803bdef69635054dbf2fe3dd1b (patch) | |
tree | f088d193071ba840bae31e8458c26935a14e38e7 /railties | |
parent | b5bb3f85585402dc9bedb93e98c13587657eabd4 (diff) | |
download | rails-476dce4fc4bba7803bdef69635054dbf2fe3dd1b.tar.gz rails-476dce4fc4bba7803bdef69635054dbf2fe3dd1b.tar.bz2 rails-476dce4fc4bba7803bdef69635054dbf2fe3dd1b.zip |
append puts the routes after the default, which causes a 404. instead use prepend
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/configuration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 28ffff58ca..4d1fa35449 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -483,7 +483,7 @@ module ApplicationTests RUBY add_to_config <<-RUBY - routes.append do + routes.prepend do resources :posts end RUBY |