Restful authentication

Posted by Joel Jensen Sat, 24 Feb 2007 15:11:00 GMT

Set up restful authentication for rails

cd site-root/vendors/plugins
svn export http://svn.techno-weenie.net/projects/plugins/restful_authentication/
cd ../../
script/generate authenticated user sessions --include-activation

# add this line to /config/environment.rb
config.active_record.observers = :user_observer

# add the resource routes in config/routes.rb.  
map.resources :users, :sessions

# activate the changes in the database
rake db:migrate
Comments

Leave a comment

Comments