Managing User authentication with Restful Authentication Plugin
Suresh Raj Bhattarai
10:37 AM
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
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment