这是简单的脚本。
require 'mongo'
database=Mongo::ReplSetConnection.new(["database1:9900", "database2:9900","database3:9900"]).db("project")
database.authenticate("user","passwd")
我收到以下错误:
undefined local variable or method `pools' for # <Mongo::ReplSetConnection:0x0000000441e610>
from /home/tommy/.rvm/gems/ruby-1.9.3-p194@myrails3/gems/mongo-1.7.0/lib/mongo/repl_set_connection.rb:309:in `authenticate_pools'
有没有人遇到过这样的问题?有什么建议吗?