update route.rb

added "DELETE '/posts/:id(.:format)'      'posts#destroy'"
deleted line resources :posts