blob: 8117bcd5105921831b70c583425b9c4f5ef473cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<% users.each do |user| %>
<tr>
<td class="user_login"><%= user.login %></td>
<td><%= link_to "show", user_path(user) %></td>
<% if current_user.admin? || current_user == user %>
<td>
<%= link_to "edit", edit_user_path(user) %>
</td>
<td>
<%= link_to(
"destroy",
user_path(user),
:method => :delete,
:confirm => "Do you really want to delete user #{user.login}?"
) %>
</td>
<% end %>
</tr>
<% end %>
|