User deletion
This commit is contained in:
parent
a2b8806e35
commit
6890802a78
8 changed files with 60 additions and 9 deletions
|
|
@ -30,6 +30,7 @@ module Admin
|
|||
def edit; end
|
||||
|
||||
def destroy
|
||||
sign_out @user
|
||||
@user.destroy
|
||||
redirect_to admin_users_path, notice: 'User got deleted'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue