Q:

How do I access remote mLab development db in Rails 5 app?

I'm currently setting up a new Rails 5 app with an existing remote db in mongolab. I'm using mongoid. Here's how I've setup development under config/mongoid.yml:
database: <insert_database_name>
hosts: 
 - <db_number>.mlab.com

options:
 user: <db_user_username>
 password: <db_user_password>

I even tried replacing the above params with the uri string inside development but no luck. I want to be able to access the remote db using rails console. What am I missing?

A:

Resolved. Had to degrade the Rails installation to 4.2.7 and mongoid 4. Worked like a charm.

