Displaying 1 result from an estimated 1 matches for "actionlist_users".
2006 Feb 05
8
Agile Rails book: depot problem 2
My second problem is:
Listing users, and deleting them doesn''t work.
If I try to list user, i just get this list:
User Delete
User Delete
User Delete
User Delete
I''m using this code in the login_controller:
def list_users
@all_users = User.find(:all)
end
def delete_user
@id = params[:id]
if id && user = User.find(id)
begin
User.destroy