a2311a5f5e0c7b9466f5171c431b505892b00ee8
[depot.git] / index.html.erb
1 <h1>Listing users</h1>
2
3 <table>
4 <tr>
5 <th>Name</th>
6 </tr>
7
8 <% for user in @users %>
9 <tr>
10 <td><%=h user.name %></td>
11 <td><%= link_to 'Show', user %></td>
12 <td><%= link_to 'Edit', edit_user_path(user) %></td>
13 <td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
14 </tr>
15 <% end %>
16 </table>
17
18 <br />
19
20 <%= link_to 'New user', new_user_path %>