Diary of problems and solutions related to web programming, database development and related technologies and platforms.

Managing User authentication with Restful Authentication Plugin

Restful Authentication Plugin is one of the best tools to manage user authentication.

To install:

gem install restful_authentication

After it gets installs run the following script:

script/generate authenticated user sessions

In this command, “authenticated” is the name of the generator; “user” is the name of the model that will store user names and passwords; and “sessions” is the name of the controller that will manage user sessions.

It will create the migration file for us. Then lets migrate the database

rake db:migrate

No comments :

Post a Comment