Permalink
Browse files

Smallish update to README.

  • Loading branch information...
1 parent c31b1f2 commit c0c7aefce4a2a0ba2b85c1185abf73cb213cd79c @josevalim josevalim committed Aug 2, 2010
Showing with 10 additions and 4 deletions.
  1. +10 −4 README.rdoc
View
@@ -209,11 +209,17 @@ Be sure to check devise_for documentation for details.
If you have the need for more deep customization, for instance to also allow "/sign_in" besides "/users/sign_in", all you need to do is to create your routes normally and wrap them in a +devise_scope+ block in the router:
- devise_scope :user do
- get "sign_in", :to => "devise/sessions#new"
- end
+ devise_scope :user do
+ get "sign_in", :to => "devise/sessions#new"
+ end
+
+This way you tell devise to use the scope :user when "/sign_in" is accessed. Notice +devise_scope+ is also aliased as +as+ and you can also give a block to +devise_for+, resulting in the same behavior:
+
+ devise_for :users do
+ get "sign_in", :to => "devise/sessions#new"
+ end
-This way you tell devise to use the scope :user when "/sign_in" is accessed. Notice +devise_scope+ is also aliased as +as+, feel free to choose the one you prefer.
+Feel free to choose the one you prefer!
== I18n

0 comments on commit c0c7aef

Please sign in to comment.