1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Readme updates.

This commit is contained in:
Carlos A. da Silva 2009-10-13 17:43:40 -03:00
parent 493f91fd37
commit 4f8ec23e7e

View file

@ -12,11 +12,11 @@ Right now it's composed of four mainly modules:
* Authenticable: responsible for encrypting password and validating authenticity of a user while signing in.
* Confirmable: responsible for verifying whether an account is already confirmed to sign in, and to send emails with confirmation instructions.
* Recoverable: takes care of reseting the user password and send reset instructions.
* Validatable: creates all needed validations for a user email and password. It's totally optional, so you're able to to create the validations by yourself.
* Validatable: creates all needed validations for email and password. It's totally optional, so you're able to to customize validations by yourself.
== Dependencies
Devise is based on "Warden":http://github.com/hassox/warden, a Rack Authentication Framework from "hassox":http://github.com/hassox, so you're gonna need to install this gem. Current warden version is 0.4.0. Please ensure you have it installed in order to user devise (see instalation below).
Devise is based on Warden (http://github.com/hassox/warden), a Rack Authentication Framework from hassox (http://github.com/hassox), so you're gonna need to install this gem. Current warden version is 0.4.0. Please ensure you have it installed in order to user devise (see instalation below).
== Installation
@ -28,11 +28,11 @@ Install devise as an engine (plugin) inside your app:
script/plugin install git://github.com/plataformatec/devise.git
And you're ready.
And you're ready to use devise.
== Basic Usage
Devise must be setted up within the model (or models) you want to use, and devise routes must be created inside your routes.rb file. Let's start by the model, assuming you already have a User model, just do this to have your authentication working:
Devise must be setted up within the model (or models) you want to use, and devise routes must be created inside your routes.rb file. Let's start by the model, assuming you already have a User model, just add the devise line to have your authentication working:
class User < ActiveRecord::Base
devise