mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Smallish update to README.
This commit is contained in:
parent
c31b1f2146
commit
c0c7aefce4
1 changed files with 10 additions and 4 deletions
|
@ -213,7 +213,13 @@ If you have the need for more deep customization, for instance to also allow "/s
|
|||
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.
|
||||
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
|
||||
|
||||
Feel free to choose the one you prefer!
|
||||
|
||||
== I18n
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue