Home Mongoid3发布了。彻底不支持ruby1.8。同学们注意了啊。
Post
Cancel

Mongoid3发布了。彻底不支持ruby1.8。同学们注意了啊。


mongoid2 站点:http://two.mongoid.org/

关于mongoid 查询的返回即时结果:  用 to_a 就可以了。  相当于ActiveRecord3 中的 .all 方法。

Item.limit(3).to_a

see: http://stackoverflow.com/a/6607689/445908
This post is licensed under CC BY 4.0 by the author.