append puts the routes after the default, which causes a 404. instead use prepend

This commit is contained in:
Aaron Patterson
2011-12-21 14:54:39 -07:00
parent b5bb3f8558
commit 476dce4fc4

View File

@@ -483,7 +483,7 @@ module ApplicationTests
RUBY
add_to_config <<-RUBY
routes.append do
routes.prepend do
resources :posts
end
RUBY