From 5a0548621ff8a2fd0c8ac342f78fc7825e874d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 20 Feb 2012 18:53:45 +0100 Subject: [PATCH] Remove deprecated examples from README, closes #1669. --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 717cd5e9..29e1a24e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -*IMPORTANT:* Devise 2.0.0 is out. If you are upgrading, please read: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0 +*IMPORTANT:* Devise 2.0 is out. If you are upgrading, please read: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0 ## Devise @@ -257,15 +257,7 @@ devise_scope :user do 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: - -```ruby -devise_for :users do - get "sign_in", :to => "devise/sessions#new" -end -``` - -Feel free to choose the one you prefer! +This way you tell devise to use the scope :user when "/sign_in" is accessed. Notice +devise_scope+ is also aliased as +as+ in your router. ### I18n