updated posts_controller.rb
updated routes.db