AuthLogic is awesome!
- November 13th, 2008
- Write comment
Probably every Rails developer has used restful_authentication. Most of us on practically every application. But restful_authentication generates quite some code and is somewhat an odd plugin. It is a bit out of place in the regular restful controllers that you make. They are making a new modular version of it, but it isn’t much of an improvement, if you ask me.
Luckily, there is a new plugin/gem that does this better. It’s called AuthLogic. It used to be called AuthGasm, but now we can actually install it without blushing every time we do ls vendor/plugins. It gives you a familiar acts_as_authentic for your user model (nothing more, mind you!) and a UserSession model, which isn’t inheriting from ActiveRecord, but from AuthLogic::Session::Base class, which AuthLogic provides.
Read more