Allow changes to the Account name

This commit is contained in:
Stanko K.R.
2025-10-31 13:41:44 +01:00
parent 1b1a17b939
commit dd583206ee
5 changed files with 24 additions and 1 deletions
@@ -1,6 +1,17 @@
class Account::SettingsController < ApplicationController
before_action
def show
@account = Account.sole
@users = User.active.alphabetically
end
def update
Account.sole.update!(account_params)
redirect_to account_settings_path
end
private
def account_params
params.expect account: %i[ name ]
end
end