I’ve updated the code for the rails basic auth generator. This generator is for my tutorial on Basic User Authentication in Rails (This has been bookmarked by over 1100 people on del.icio.us which is pretty cool:)). I wrote the tutorial using rails 1.0. Using the code from the tutorial with rails 1.2 will generate a list of deprecation warnings. The updated generator has some minor changes to the code to avoid these deprecation warnings. They mainly involved changing start_form_tag to form_for :x do |form| and updating deprecated assertions in the unit tests.
A basic user authentication generator for rails. read more »
In this article I will show how to create a generator that generates the code from my previous article about basic user authentication in rails.
Rails generators are used to automatically generate code. You probably already use them to generate controllers, models and migrations. Every time you call script/generate you’re using a generator. However it’s easy to create your own generator in rails. If you find yourself copying code between applications you may find it useful to create a generator to generate the code for you. read more »
This article walks through creating a basic authentication system in rails.
Update: If you liked this article Digg it!
The question of user authentication comes up regularly on the rails mailing list and there are several articles and discussions around the web on whether it should be part of the rails framework. Its not included in rails and it is not likely to be. read more »