Convert PostsController to use respond_with