【发布时间】:2011-10-26 00:11:15
【问题描述】:
我有我的 Yaml 配置文件,mongo.yml:
development:
adapter: mongodb
database: fhsclock_development
host: localhost
port: nil
test:
adapter: mongodb
database: fhsclock_test
host: localhost
port: nil
production:
adapter: mongodb
database: fhsclock
hosts:
- - localhost
- nil
- - staff.mongohq.com
- 10015
如何使用这个文件来配置和连接 MongoMapper?
【问题讨论】:
标签: yaml mongomapper