views:

66

answers:

2

Is there an automatic way in Ruby On Rails for authentication porpose?

What gem is this and what does it do?

Does it automaticly generate the tables and pages like when i should generate a scaffold?

+2  A: 

There are some plugins that do code generation for you, but I strongly prefer Authlogic. Ryan Bates has an excellent introductory video.

Alex Reisner
If i want to include a user's adress in the registration form, do i add this in the code of authlogic? eg.:script/generate nifty_scaffold user username:string email:string password:string address:string new edit ?
NicoJuicy
+1  A: 

I agree that Authlogic is a great choice for Rails authentication.

In addition to the links Alex provided, check out the authlogic_example Git repository for step-by-step setup instructions, including the proper migration to be using. You can still start with nifty_scaffold and then edit the migration, models, and controllers appropriately.

rugdr