User deletion

This commit is contained in:
Gopesh Tulsyan 2014-08-10 11:41:35 +05:30
parent a2b8806e35
commit 6890802a78
8 changed files with 60 additions and 9 deletions

View file

@ -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