diff options
| author | hukl <contact@smyck.org> | 2009-10-07 21:03:28 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-07 21:03:28 +0200 |
| commit | 9dadc61cae2c4c01a97880e89ca86a0e760fc8d1 (patch) | |
| tree | 4c50bccc0339429d669a04e5dc3f2e735dfcb515 /app/views/users/_admin_user_item.html.erb | |
| parent | a57fb0c2084885c35b7ba89917c37696e5df3b3f (diff) | |
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
Diffstat (limited to 'app/views/users/_admin_user_item.html.erb')
| -rw-r--r-- | app/views/users/_admin_user_item.html.erb | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
| 1 | <tr> | ||
| 2 | <td><%= admin_user_item.login %></td> | ||
| 3 | <td> | ||
| 4 | <%= link_to "Show", user_path(admin_user_item) %> | ||
| 5 | <%= link_to( | ||
| 6 | "Destroy", | ||
| 7 | user_path(admin_user_item), | ||
| 8 | :method => "delete", | ||
| 9 | :confirm => "Are you sure to delete user: #{admin_user_item.login}?" | ||
| 10 | ) %> | ||
| 11 | </td> | ||
| 12 | </tr> \ No newline at end of file | ||
