move current_post method to PostsController