From 9dadc61cae2c4c01a97880e89ca86a0e760fc8d1 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 7 Oct 2009 21:03:28 +0200 Subject: implemented complete restful user management interface including functional tests. this enables basic user operation. note that only admins are allowed to create, edit, destroy other users --- app/views/users/_admin_user_item.html.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/views/users/_admin_user_item.html.erb (limited to 'app/views/users/_admin_user_item.html.erb') diff --git a/app/views/users/_admin_user_item.html.erb b/app/views/users/_admin_user_item.html.erb new file mode 100644 index 0000000..d882dc4 --- /dev/null +++ b/app/views/users/_admin_user_item.html.erb @@ -0,0 +1,12 @@ + + <%= admin_user_item.login %> + + <%= link_to "Show", user_path(admin_user_item) %> + <%= link_to( + "Destroy", + user_path(admin_user_item), + :method => "delete", + :confirm => "Are you sure to delete user: #{admin_user_item.login}?" + ) %> + + \ No newline at end of file -- cgit v1.3