2016-06-28 11 views

答えて

1

あなたはdevise confirmationコントローラをオーバーライドする必要があります。あなたのroutes.rbを内 は

devise_for :users, controllers: { confirmations: 'confirmations' } 

この行を追加するには、サーバを再起動する必要があり

class ConfirmationsController < Devise::ConfirmationsController 

    private 

    def after_confirmation_path_for(resource_name, resource) 
    your_new_after_confirmation_path #your path where you want to land 
    end 

end 

このコードをでファイルを作成して貼り付けます。

ソース:https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users#redirecting-user