Could not connect to a primary node for replica set #]>
Moped::Errors::ConnectionFailure:
The following error can happen if the xyz is not localhost. If you are running the mongo on localhost on your machine, change the mongoid.yml file to point to localhost. This will fix the problem.