I am an RoR noob myself and having different Rails plugins at my fingertips proves to be helpful.
If you want to add an authentication in your RoR application you can use Restful Authentication. Without you doing the code for logging feature so you have ample time for main features in your application.
Steps:
1. In your app root dir:
>>ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication
2. Then generate authenticated files:
>> ruby script/generate Authenticated Sessions User
( or if you want to activation add: --include-activation )
3. Edit the migration file if you want to add/remove fields and do the migration:
>> rake db:migrate
Viola! You have the logging feature added.
You can further update the models and add activation and an signup emailer if you want to. :)
No comments:
Post a Comment