Extending Devise – Registrations Controller

Kakimoto Online


In this post, I want to share my experiences in using Devise as an authentication solution for my company’s Web app.

While building Motonow, the team had to make a couple of though decisions and choosing the right authentication solution was one of them. To be honest, most of the projects I’ve joined had already overcome this phase so I’ve never participated in such conversations until Motonow.

After doing some prototypes, we’ve decided to use Devise because:

  1. It has most of the features we want to implement already in place;
  2. It’s really straightforward to start with;
  3. It’s well documented;
  4. It’s widely adopted in the Rails community;

Everything was going well until the domain model started to grow in the sense that Devise’s basic configuration was not enough for us. At that point, we needed to extend Devise, more specifically the RegistrationsController.

Domain Model

At the beginning we only had a User model so integrating with devise was pretty easy…

View original post 522 more words


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s