Navigation Menu

Skip to content

Commit

Permalink
Remove deprecated examples from README, closes heartcombo#1669.
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Feb 20, 2012
1 parent 0f8e472 commit 5a05486
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions 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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5a05486

Please sign in to comment.