Skip to content

HP/rails_warden_mongoid_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RailsWarden example using Mongoid

Created by: http://github.com/HP

User Model based on Clearance.

Example Application based on Authlogic Example App.

Layout generated with nifty_layout from Nifty Generators.

RailsWarden provides authentication via the Warden Rack authentication framework.

Helper Methods provided by RailsWarden:

  • Access Warden: warden
  • Check if user is logged in: logged_in?, authenticated?
  • Access logged in user: current_user, user
  • Set logged in user: current_user=, user=

Controller Methods:

  • Authenticate: authenticate
  • Authenticate with error/redirect: authenticate!
  • Log out: logout

About

RailsWarden example using Mongoid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published