update post_controller.rb