Fixed syntax error in posts_controller