rails 版本:4.2.0 mongid 版本:4.0.0
出错代码: @current_user ||= (User.find session[:user_id] if session[:user_id])
The operation: #<Moped::Protocol::Query @length=93 @request_id=9 @response_to=0 @op_code=2004 @flags=[] @full_collection_name="mongoid_study_development.users" @skip=0 @limit=0 @selector={"_id"=>{"$oid"=>BSON::ObjectId('54ddcb9e6361700900000000')}} @fields=nil> failed with error 17287: "Can't canonicalize query: BadValue unknown operator: $oid" See https://github.com/mongodb/mongo/blob/master/docs/errors.md for details about this error.