maxim / devise_example forked from plataformatec/devise_example

An example app which uses Devise

This URL has Read+Write access

maxim (author)
Fri Nov 06 08:02:01 -0800 2009
commit  2bbe936b2ca6aa4368372f6a5ba95930406ac3ec
tree    b0099df3dc452dc6983c7f46100fdaefbe18ed74
parent  2bc044cd2d9f278983bea41faa32388fd04f76b0
name age message
file .gitignore Mon Sep 28 15:26:14 -0700 2009 Tests with authentication controller. [carlosantoniodasilva]
file README.rdoc Tue Oct 13 13:00:20 -0700 2009 Fix routes, add docs about footnotes and fix la... [carlosantoniodasilva]
file Rakefile Wed Sep 16 05:59:36 -0700 2009 First commit [carlosantoniodasilva]
directory app/ Loading commit data...
directory config/
directory db/
directory doc/ Wed Sep 16 05:59:36 -0700 2009 First commit [carlosantoniodasilva]
directory lib/ Mon Oct 12 20:36:11 -0700 2009 Improving readme and adding db:drop to setup. [carlosantoniodasilva]
directory public/ Sun Oct 11 09:00:09 -0700 2009 Updating example to login as user and as admin. [carlosantoniodasilva]
directory script/ Wed Sep 16 05:59:36 -0700 2009 First commit [carlosantoniodasilva]
directory test/ Sat Oct 10 05:33:45 -0700 2009 Tests with another model. [carlosantoniodasilva]
README.rdoc

Devise Example

Example App using devise. github.com/plataformatec/devise

Installation

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.

License

MIT License. Copyright 2009 Plataforma Tecnologia. blog.plataformatec.com.br