Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: dd51cd7872
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.51 kB
<h1>Listing users</h1>
<table>
<tr>
<th>Email</th>
<th>Password</th>
<th>Role</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @users.each do |user| %>
<tr>
<td><%= user.email %></td>
<td><%= user.password %></td>
<td><%= user.role %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New User', new_user_path %>
Jump to Line
Something went wrong with that request. Please try again.