试用MongoMapper

Thursday, April 1, 2010

MongoMapper - A Ruby
Object Mapper for Mongo

安装MongoDB:
下面任意一种方式

rails项目:

  • startproject
  • vim /config/environment.rb
  • vim /config/initializers/mongo_config.rb

    • sudo rake gems:install

    • script/generate nifty_layout

    • script/generate nifty_scaffold project name:string --skip-migration

  • vim /app/models/project.rb

  • 启动项目 script/server
  • References
  • <ul>
    

  • MongoMapper, The Rad Mongo Wrapper

  • MongoDB and MongoMapper
  • This entry was tagged mongodb and Rails

    comments powered by Disqus

    © 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

    go to Top