I\'ve just started a brand new rails project and the first task I\'m trying to complete is creating an object and having it save within my database. I went through the auto
Database connections currently cannot be made via URI at this point in mongoid. The format of the mongoid.yml is as follows:
environment:
host: <%= ENV['MONGOID_HOST'] %>
port: <%= ENV['MONGOID_PORT'] %>
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
database: <%= ENV['MONGOID_DATABASE'] %>
What you will need to do is parse the MongoHQ string into its constituent parts to supply in the mongoid.yml
If you want, someone has cooked up a gist that does this for you here