Skip to content

Commit

Permalink
try fixing cuke redirect error
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Feb 13, 2024
1 parent 917b096 commit 30cd880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def edit; end
# PATCH/PUT /users/1
def update
if @user.update(user_params)
redirect_to @user, notice: 'User was successfully updated.'
redirect_to user_path(@user), notice: 'User was successfully updated.'
else
flash.now[:error] = "An error prohibited your profile from being saved: #{@user.errors.full_messages.join('. ')}."
render :edit
Expand Down

0 comments on commit 30cd880

Please sign in to comment.