我想在我的一个模型中使用harvested gem。它已经安装好了(没有问题),bundle check说没问题。它在rails console中工作,但不知何故不能从模型中工作。有什么提示吗?
def get_clients
harvest = Harvest.hardy_client('foo', 'bar', 'baz')
end
NameError (uninitialized constant HarvestForm::Harvest):
app/models/harvest_form.rb:23:in `get_clients'
app/controllers/api/v1/harvest_controller.rb:11:in `create'发布于 2011-08-01 00:06:32
您需要重新启动服务器:)
https://stackoverflow.com/questions/6889705
复制相似问题