Merge 521d2dc72f into b64cc9f7e4
This commit is contained in:
commit
1421241df5
8 changed files with 30 additions and 23 deletions
|
|
@ -16,4 +16,15 @@ class Admin::UsersController < ApplicationController
|
|||
user.update_attributes!(params[:user])
|
||||
redirect_to admin_users_path, :notice => "Updated #{user.email}"
|
||||
end
|
||||
|
||||
def delete
|
||||
@user = User.find(params[:id])
|
||||
end
|
||||
|
||||
def destroy
|
||||
@user = User.find(params[:id])
|
||||
@user.destroy
|
||||
redirect_to admin_users_path, :notice => "User got deleted"
|
||||
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue