Update posts_controller.rb