Thursday, September 11, 2008

Install Restful Authentication

Steps:
  1. Under project folder, run "script/plugin source http://svn.techno-weenie.net/projects/plugins/"
  2. Under project folder, run "script/plugin install restful_authentication"
  3. Under project folder, run "script/generate authenticated user sessions"
  4. Inside route.rb, add "map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate', :activation_code => nil"
  5. Inside route.rb, add "map.signup '/signup', :controller => 'users', :action => 'new'"
  6. Inside route.rb, add "map.login '/login', :controller => 'sessions', :action => 'new'"
  7. Inside route.rb, add "map.logout '/logout', :controller => 'sessions', :action => 'destroy'"
  8. Under project folder, run "rake db:migrate"
  9. Inside, app controller, add "include AuthenticatedSystem" to application controller
  10. Inside, app controller, add "before_filter :login_required" to controller requiring authentication

3 comments:

Anonymous said...

...please where can I buy a unicorn?

YUga said...

Really Helpful...!!!
Thank you verymuch

Houlland said...

International Phone Call Communication, International SMS And Voice Service.Voip System, IP Phone Ant Tone,Inc. voip phone