mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 12:44:03 +00:00
changes from comments, fix commercials failing test
This commit is contained in:
parent
d794593e10
commit
beb88b848d
15 changed files with 58 additions and 77 deletions
|
|
@ -20,8 +20,11 @@ module Admin
|
|||
end
|
||||
|
||||
def update
|
||||
@user.update_attributes!(params[:user])
|
||||
redirect_to admin_users_path, notice: "Updated #{@user.email}"
|
||||
if @user.update_attributes(params[:user])
|
||||
redirect_to admin_users_path, notice: "Updated #{@user.email}"
|
||||
else
|
||||
redirect_to admin_users_path, alert: "Could not update #{@user.name}. #{@user.errors.full_messages.join '. '}."
|
||||
end
|
||||
end
|
||||
|
||||
def edit; end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue