Is this your full routes.rb file? Sounds like you might have a preceding resources :posts
entry, which basically matches /posts/:id
. Also, there's nothing I can see from the routes file you posted that could be causing a redirect from the root path to posts, so it must be something else in there.