Example App using devise. github.com/plataformatec/devise
Install warden gem if you don’t have it installed:
sudo gem install warden
Use git submodule to update devise inside vendor/plugins:
git submodule init && git submodule update
Rake devise setup task:
rake devise:setup
This will:
-
drop any existing database
-
create a new database
-
migrate the database
-
create a default user and admin
Run the server and use the credentials provided by the rake task to sign in and test the application.
The example is using “rails-footnotes”:github.com/josevalim/rails-footnotes gem. If you don’t have it installed, run the following command to install the gem:
sudo gem install josevalim-rails-footnotes
If you don’t want to install this gem, just comment the line in the environment.rb file.
MIT License. Copyright 2009 Plataforma Tecnologia. blog.plataformatec.com.br