Created
April 16, 2011 21:52
-
-
Save hamin/923537 to your computer and use it in GitHub Desktop.
How to get replica sets to work with MM...just use the Ruby driver!!!!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In your config/initializers/mongo.rb where you initialize your connection with Mongo: | |
MongoMapper.connection = Mongo::Connection.multi([["db3", 27017], ["db3", 27018]]) | |
# of course you can read the replica set info from a simple YAML file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment