moved set_post out of private in posts_controller.rb