Skip to content

Commit

Permalink
❇️サインアップ時の画面はログイン画面に誘導する
Browse files Browse the repository at this point in the history
  • Loading branch information
ae-b committed Oct 12, 2023
1 parent 3a96a71 commit b1682c2
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 b1682c2

Please sign in to comment.