mongodb

BSONでFixnumはサポート外?

mongodbを使っていてこんなエラーが出た。 Cannot serialize Fixnum as a BSON type; it either isn't supported or won't translate to BSONFixnumはBSONの型としてシリアライズできない?んなはずないじゃん。 BSON.serialize({"A" => 123}) #=> #

mongo_mapperのbelongs_toの参照が返すnilはnilじゃない

mongo_mapperを使い始める前に言っておくッ! おれは今やつのスタンドをほんのちょっぴりだが体験した い…いや…体験したというよりはまったく理解を超えていたのだが…… ,. -‐'''''""¨¨¨ヽ (.___,,,... -ァァフ| あ…ありのまま 今 起こった事を話すぜ! |i i|…