New Discussion

Notifications

You’re not receiving notifications from this thread.

Rails mongoid connection to remote cluster

0
Rails

I am trying to make a rails 4 application with mongodb (skipping active record). I created a cluster on https://cloud.mongodb.com, which has three hosts. The cluster is accessible in the Mongo Shell, how can I access it in rails mongoid.yml.

mongodb://sommer:DYazhDSxwgWWvD00@cluster0-shard-00-00-i1dxi.mongodb.net:27017,cluster0-shard-00-01-i1dxi.mongodb.net:27017,cluster0-shard-00-02-i1dxi.mongodb.net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin

this is where i created the cluster and it is public.

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.