Update to rails basic auth generator

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.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.