how can i connect to a mongodb from Ruby code ?
Short version: install the Mongo gem, then db = Mongo::Connection.new.db("mydb")
db = Mongo::Connection.new.db("mydb")