From 4ee0f769089e7db13a00ff57750b1071d8b0b61d Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Mon, 6 Mar 2023 12:49:14 +0100 Subject: [PATCH] revert changes on home controller --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index d01a78caa..e2c9bc90b 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -26,7 +26,7 @@ def update_profile if @current_user.update(user_params) @current_user.ordergroup.update(ordergroup_params) if ordergroup_params session[:locale] = @current_user.locale - redirect_to my_profile_path, notice: I18n.t('home.changes_saved') + redirect_to my_profile_url, notice: I18n.t('home.changes_saved') else render :profile end