Permalink
Browse files

Move extra helpers names to the bottom.

  • Loading branch information...
1 parent 13968f4 commit 67645c68f7a65ad26cb687e95914cb37e1587348 @josevalim josevalim committed Nov 15, 2010
Showing with 10 additions and 10 deletions.
  1. +10 −10 README.rdoc
View
20 README.rdoc
@@ -139,16 +139,6 @@ You can access the session for this scope:
user_session
-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"
@@ -159,6 +149,16 @@ Finally, you need to set up default url options for the mailer in each environme
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
+Notice that if your devise model is not called "user" but "member", then the helpers you should use are:
+
+ before_filter :authenticate_member!
+
+ member_signed_in?
+
+ current_member
+
+ member_session
+
=== Configuring Models
The devise method in your models also accepts some options to configure its modules. For example, you can choose which encryptor to use in database_authenticatable:

0 comments on commit 67645c6

Please sign in to comment.