Add notices
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 39s

This commit is contained in:
sto
2025-06-21 09:59:18 +02:00
parent 2616cbaa71
commit 5b908fe37c
10 changed files with 144 additions and 70 deletions

View File

@@ -15,7 +15,7 @@ class UsersController < ApplicationController
authorize @user
if @user.update(user_params)
redirect_to contests_path
redirect_to contests_path, notice: t("users.edit.notice")
else
render :edit, status: :unprocessable_entity
end
@@ -38,7 +38,7 @@ class UsersController < ApplicationController
@user = User.new(user_params)
if @user.save
redirect_to users_path
redirect_to users_path, notice: t("users.new.notice")
else
render :new, status: :unprocessable_entity
end