Merge pull request #2806 from keating/master

revise readme
This commit is contained in:
José Valim 2013-12-21 03:21:03 -08:00
commit 01e029fd9b
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ If the customization at the views level is not enough, you can customize each co
devise_for :admins, :controllers => { :sessions => "admins/sessions" }
```
3. And since we changed the controller, it won't use the `"devise/sessions"` views, so remember to copy `"devise/sessions"` to `"admin/sessions"`.
3. And since we changed the controller, it won't use the `"devise/sessions"` views, so remember to copy `"devise/sessions"` to `"admins/sessions"`.
Remember that Devise uses flash messages to let users know if sign in was successful or failed. Devise expects your application to call `"flash[:notice]"` and `"flash[:alert]"` as appropriate. Do not print the entire flash hash, print specific keys or at least remove the `:timedout` key from the hash as Devise adds this key in some circumstances, this key is not meant for display.