`
sg552
  • 浏览: 613141 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
47437293-94b9-3b04-9152-8971c7580049
白手起家学习使用Flex
浏览量:18445
社区版块
存档分类
最新评论

mongoid 3 发布了。彻底不支持 ruby 1.8 。同学们注意了啊。

 
阅读更多

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

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

Item.limit(3).to_a

see: http://stackoverflow.com/a/6607689/445908
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics