I am trying to connect to a mongodb db with the following Mongo documentation. However after setting my connection via
client = Mongo::Client.new('mongodb://127.0.0.1:27017/test')
and subsequently creating a DB instance:
db = client.database
I am still unable to view the collection contained within this db via db.collection_names as this method does not seem to return anything, does anyone know the issue?