Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ecf175a0c7
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.526 kB
<h1>Listing users</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<%= content_tag_for(:tr, @users) do |user| %>
<td><%= user.name %></td>
<td><%= link_to 'Show', user %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>
<% end %>
</tbody>
</table>
<br />
<%= link_to 'New User', new_user_path %>
Jump to Line
Something went wrong with that request. Please try again.