Closed yacc closed 11 years ago
connection = Mongo::Connection.new(:host, :port) Mongoid.database = connection.db(:appname) Mongoid.database.authenticate(:login,:password)