Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the most common way to do authentication in rails 3?

I need to do authentication in rail3 with standard sign up/login/forgot password functionality. Is there a plugin or something that most people use for this?

like image 568
NotDan Avatar asked Sep 01 '10 00:09

NotDan


2 Answers

I'm not sure what the most common method is - but certainly a very popular gem is 'Devise', by Plataformatec: http://github.com/plataformatec/devise

I've tried a few auth gems and for me, it was the simplest to setup and modify to my needs. It has built in password recovery, as well as account confirmation (if required) and a few other very handy features.

like image 67
theTRON Avatar answered Oct 23 '22 22:10

theTRON


The most popular is definately authlogic. I would agree with theTRON though, devise is the way to go.

like image 33
Matt Briggs Avatar answered Oct 24 '22 00:10

Matt Briggs