O'Reilly logo

Learning Devise for Rails by Nia Mutiara, Hafiz, Giovanni Sakti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating Devise with Mongoid

This is an example of how you are able to implement Devise with one of the NoSQL databases, such as MongoDB. To establish a connection, we are going to use Mongoid as a driver. I'm going to show you two examples. The first example will require a fresh Rails application where you need to generate a new Rails application, and the second one will show you how to change the configuration from MySQL to MongoDB. Note that these examples will use MongoDB Version 2.2.0 and I will not tell you how to install MongoDB, but you can see the full documentation about its installation at http://docs.mongodb.org/manual/installation/. As you can see in the documentation, it also shows you how to turn on the server; therefore, I assume ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required