Example App using devise. github.com/plataformatec/devise
Install bundler if you haven’t yet:
gem install bundler
Install the gems:
bundle install
This will install Rails 3, sqlite3-ruby gem and Devise 1.3.1.
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.
MIT License. Copyright 2010 Plataforma Tecnologia. blog.plataformatec.com.br