From d94eedb5c886a67453976aa2089057472064ffdf Mon Sep 17 00:00:00 2001 From: bsatarnejad Date: Wed, 2 Jun 2021 14:07:37 +0200 Subject: [PATCH] instead of redirecting to user profile page, stay on edit page --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5b5b73a3eaa9..f42cc1c2b834 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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