getting rid of resources :posts in routes fixes routing issue