Shrikant
Shrikant

Reputation: 279

How do we use MongoDB in Ruby on Rails?

Does anybody know how to create a rails application that use noSql database? We do rails new app_name -d mysql for using mysql database, I need to know what command I should fire in case of noSql database.how to configure and connect to that database and how to use table from it. I need reference link to study. Can anybody help me out? Thanks.

Upvotes: 1

Views: 2933

Answers (2)

Arthur Neves
Arthur Neves

Reputation: 12138

As far as I am concerned you will have to create a new Rails project excluding active record:

rails new my_app --skip-active-record

then you can follow the configuration steps from Mongoid:

http://mongoid.org/en/mongoid/docs/installation.html

Upvotes: 5

Related Questions