Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example of Using Devise 1.3.3 with Mongoid 2.0.1 and Ruby 1.9.2
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

rails new MongoDeviseTest

edited Gemfile

rails g mongoid:config

edited config/mongoid.yml

edited config/application.rb (to remove rails/all requirement)

rails g devise:install

rails g devise User

rails g controller home index

edited config/routes
edited app/views/home/index.html.erb

rake routes

# signed up a user via http://localhost:3000/users/sign_up , 
#   and can now successfully log in and out

# ------------------------------------------------------------------------
created git branch 'override_sessionscontroller'

check this branch to see how to override Devise::SessionsController with Users::SessionsController

e.g. see branch  'override_sessionscontroller'

Something went wrong with that request. Please try again.