Skip to content

Commit

Permalink
Merge pull request #559 from mitakarb/signup_login_path
Browse files Browse the repository at this point in the history
サインアップ時の画面はログイン画面に誘導する
  • Loading branch information
ae-b authored Oct 12, 2023
2 parents f70b030 + b1682c2 commit 5ee983d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ee983d

Please sign in to comment.