Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

  • Loading branch information...
commit 6d29bcc467ab03b364a99eab9c293fd8241d1fe4 1 parent ee87ec3
@paulca paulca authored josevalim committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  README.rdoc
2  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:
Please sign in to comment.
Something went wrong with that request. Please try again.