Install and use mongoDB with Rails in Ubuntu

MongoDB is a scalable, high-performance, document-oriented schemaless database. In this post I describe how to install MongoDB in ubuntu 12.04 and how to use mongobd with rails. Followings are the steps to install MongoDB 1. Add GPG Key sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10 2. Edit your source.list sudo gedit /etc/apt/sources.list and add this…

Read more...

Use both MongoDB and MySQL database in rails project

You need to setup your rails project with both of the database connections. Firstly for MongoDB, you need to decide which driver wrapper (if you use one) are you going to use. The two common ones are MongoID & MongoMapper. Both do pretty much the same thing and make it easy to interact with Mongo…

Read more...