Skip to content

Commit

Permalink
instead of redirecting to user profile page, stay on edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad committed Jun 2, 2021
1 parent 0b8eb4a commit d94eedb
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 @@ -159,7 +159,7 @@ def update
respond_to do |format|
format.html do
flash[:notice] = I18n.t(:notice_successful_update)
redirect_back(fallback_location: edit_user_path(@user))
render action: :edit
end
end
else
Expand Down

0 comments on commit d94eedb

Please sign in to comment.