mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Fix docs about after_sign_in_path_for and routes
This commit is contained in:
parent
05d23f1a00
commit
4f6113ab68
1 changed files with 4 additions and 4 deletions
|
@ -96,13 +96,13 @@ module Devise
|
||||||
#
|
#
|
||||||
# map.user_root '/users', :controller => 'users' # creates user_root_path
|
# map.user_root '/users', :controller => 'users' # creates user_root_path
|
||||||
#
|
#
|
||||||
# map.resources :users do |users|
|
# map.namespace :user do |user|
|
||||||
# users.root # creates user_root_path
|
# user.root :controller => 'users' # creates user_root_path
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# If none of these are defined, root_path is used. However, if this default
|
# If the resource root path is not defined, root_path is used. However,
|
||||||
# is not enough, you can customize it, for example:
|
# if this default is not enough, you can customize it, for example:
|
||||||
#
|
#
|
||||||
# def after_sign_in_path_for(resource)
|
# def after_sign_in_path_for(resource)
|
||||||
# if resource.is_a?(User) && resource.can_publish?
|
# if resource.is_a?(User) && resource.can_publish?
|
||||||
|
|
Loading…
Reference in a new issue