0

运行 rake 任务时出现以下错误。谁能帮我?

错误

rake aborted!
The operation: "GET MORE"
failed with error "cursor 178700246530 not found"
C:/Ruby193/lib/ruby/gems/1.9.1/gems/moped-1.3.2/lib/moped/node.rb:210:in `get_more'

我的佣金代码

MyCollection.where(:name => "abc").each do |comp|   
 l =     open(comp.logo_url)
 comp.logo = l
 comp.save!
end

提前致谢

4

1 回答 1

-2

尝试将find_in_batches与您的收藏一起使用。

于 2013-02-10T08:40:18.293 回答