Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: fillman
One more great article. But I prefer using authlogic or device to achieve those results as those gems have a lot of features explained here and much more. And they're covered with tests what is important!