mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Remove deprecated examples from README, closes #1669.
This commit is contained in:
parent
0f8e472dab
commit
5a0548621f
1 changed files with 2 additions and 10 deletions
12
README.md
12
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
|
## Devise
|
||||||
|
|
||||||
|
@ -257,15 +257,7 @@ devise_scope :user do
|
||||||
end
|
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:
|
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.
|
||||||
|
|
||||||
```ruby
|
|
||||||
devise_for :users do
|
|
||||||
get "sign_in", :to => "devise/sessions#new"
|
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
Feel free to choose the one you prefer!
|
|
||||||
|
|
||||||
### I18n
|
### I18n
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue