Rails MongoDB : Introduction MongoDB is a document database with…