- Under project folder, run "script/plugin source http://svn.techno-weenie.net/projects/plugins/"
- Under project folder, run "script/plugin install restful_authentication"
- Under project folder, run "script/generate authenticated user sessions"
- Inside route.rb, add "map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate', :activation_code => nil"
- Inside route.rb, add "map.signup '/signup', :controller => 'users', :action => 'new'"
- Inside route.rb, add "map.login '/login', :controller => 'sessions', :action => 'new'"
- Inside route.rb, add "map.logout '/logout', :controller => 'sessions', :action => 'destroy'"
- Under project folder, run "rake db:migrate"
- Inside, app controller, add "include AuthenticatedSystem" to application controller
- Inside, app controller, add "before_filter :login_required" to controller requiring authentication
Thursday, September 11, 2008
Install Restful Authentication
Steps:
Subscribe to:
Post Comments (Atom)
3 comments:
...please where can I buy a unicorn?
Really Helpful...!!!
Thank you verymuch
International Phone Call Communication, International SMS And Voice Service.Voip System, IP Phone Ant Tone,Inc. voip phone
Post a Comment