diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index e7ff410a..4a43f9f3 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -10,7 +10,7 @@ def create if @user.save flash[:notice] = 'ユーザー登録しました' - redirect_to root_path + redirect_to login_path else flash.now[:alert] = @user.errors.full_messages.join(", ") render :new, status: :unprocessable_entity