Setup I18n for titles
All checks were successful
CI / scan_ruby (push) Successful in 17s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 26s

This commit is contained in:
sto
2025-03-27 12:15:27 +01:00
parent 26b8064553
commit 497768610d
10 changed files with 51 additions and 37 deletions

View File

@@ -4,14 +4,11 @@ class UsersController < ApplicationController
def index
authorize :user
@title = "All users"
@users = User.all
end
def edit
authorize @user
@title = "My settings"
end
def update
@@ -33,7 +30,6 @@ class UsersController < ApplicationController
def new
authorize :user
@title = "New user"
@user = User.new()
end
@@ -44,7 +40,6 @@ class UsersController < ApplicationController
if @user.save
redirect_to users_path
else
@title = "New user"
render :new, status: :unprocessable_entity
end
end