From 54e11dc838a74ea25f0ac509550ac05a90110574 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index d01a78ca..a3d9cd53 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -18,7 +18,7 @@ class HomeController < ApplicationController @bank_accounts = @types.includes(:bank_account).map(&:bank_account).uniq.compact @bank_accounts = [BankAccount.last] if @bank_accounts.empty? else - redirect_to root_path, alert: I18n.t('group_orders.errors.no_member') + redirect_to root_url, alert: I18n.t('group_orders.errors.no_member') end end @@ -26,7 +26,7 @@ class HomeController < ApplicationController 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