Browse files

Add mention of flash[:notice] and flash[:alert]

  • Loading branch information...
1 parent ee87ec3 commit 6d29bcc467ab03b364a99eab9c293fd8241d1fe4 @paulca paulca committed with josevalim Feb 15, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.rdoc
@@ -177,6 +177,8 @@ By default Devise will use the same views for all roles you have. But what if yo
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:

0 comments on commit 6d29bcc

Please sign in to comment.