add resources :posts to config/routes