README.rdoc in devise-1.0.0 vs README.rdoc in devise-1.0.1

- old
+ new

@@ -5,20 +5,22 @@ * Is Rack based; * Is a complete MVC solution based on Rails engines; * Allows you to have multiple roles (or models/scopes) signed in at the same time; * Is based on a modularity concept: use just what you really need. -Right now it's composed of ten modules: +Right now it's composed of 12 modules: * Authenticatable: responsible for encrypting password and validating authenticity of a user while signing in. +* Token Authenticatable: validates authenticity of a user while signing in using an authentication token (also known as "single access token"). +* HttpAuthenticatable: sign in users using basic HTTP authentication. * 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. * Registerable: handles signing up users through a registration process. * Rememberable: manages generating and clearing token for remember the user from a saved cookie. * Trackable: tracks sign in count, timestamps and ip. -* Validatable: creates all needed validations for email and password. It's totally optional, so you're able to to customize validations by yourself. * Timeoutable: expires sessions without activity in a certain period of time. +* Validatable: creates all needed validations for email and password. It's totally optional, so you're able to to customize validations by yourself. * Lockable: takes care of locking an account based on the number of failed sign in attempts. Handles unlock via expire and email. * Activatable: if you need to activate accounts by other means, which are not through confirmation, use this module. There's an example application using Devise at http://github.com/plataformatec/devise_example . @@ -172,9 +174,11 @@ ruby script/generate devise_views By default Devise will use the same views for all roles you have. But what if you need so different views to each of them? Devise also has an easy way to accomplish it: just setup config.scoped_views to true inside "config/initializers/devise.rb". After doing so you will be able to have views based on the scope like 'sessions/users/new' and 'sessions/admin/new'. If no view is found within the scope, Devise will fallback to the default view. + +Devise uses flash messages to let users know if their login is successful or not. Devise expects your application to call 'flash[:notice]' and 'flash[:alert]' as appropriate. == I18n Devise uses flash messages with I18n with the flash keys :success and :failure. To customize your app, you can setup your locale file this way: