0
내가
after_sign_up_path_for
또는
after_inactive_sign_up_path_for
난 사람이 보여 주실 래요입니다 어떤 선택 need.Also 어떤 경우 사용자가 가입 또는 내가 확실하지 않다 나누었다
show_home_url
대신
root_path(home#index)
에 그를 재 로그인 할 때하는 등의 방법으로 고안 오버라이드 (override) 할 필요가
어떻게 구현해야합니까? 나는 루비에 begginner입니다. 여기에 Devise registration controller 고마워요.devise 리디렉션을 재정의하는 방법은 무엇입니까?
def after_sign_up_path_for(resource)
show_home_path
end
의
devise wiki을 참조하십시오 : 시작으로
class RegistrationsController < Devise::RegistrationsController
def after_inactive_sign_up_path_for(resource)
end
def after_sign_up_path_for(resource)
end
end