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 に答える