Browse files

Updated README to remove unclarity about user autogenerated helper me…

  • Loading branch information...
1 parent 020f919 commit 1b05d8c3bd25fa91b227bdef8381818ac71d0a30 @rpechayr rpechayr committed with josevalim Nov 15, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
6 README.rdoc
@@ -139,6 +139,12 @@ You can access the session for this scope:
+Assume your devise model is not called 'user' but 'member' for example. Then the helpers you should use should be:
+* before_filter :authenticate_member!
+* member_signed_in?
+* current_member
+* member_session
After signing in a user, confirming the account or updating the password, Devise will look for a scoped root path to redirect. Example: For a :user resource, it will use user_root_path if it exists, otherwise default root_path will be used. This means that you need to set the root inside your routes:
root :to => "home"

0 comments on commit 1b05d8c

Please sign in to comment.