現在、Sign_upとSign_inのリダイレクト先を変更しようと考えております。
def after_sign_up_path_for(resource)
def after_inactive_sign_up_path_for(resource)
の両方を試しましたが、sign_inに引っ張られるようで、sign_up時のリダイレクト先が上手く表示されません。
ご教示頂ければと存じます。
よろしくお願い致します。
def after_inactive_sign_up_path_for(resource) case resource when User new_company_path when Admin companies_top_path else super end end def after_sign_in_path_for(resource) case resource when User new_company_path when Admin admin_path else super end end def after_sign_out_path_for(resource) case resource when User, :user, :users "/" when Admin, :admin, :admins "/" else super end end
あなたの回答
tips
プレビュー