tap/app/views/users/index.html.erb
2014-11-26 11:58:51 +01:00

11 lines
264 B
Text

<h1>All users</h1>
<ul class="users">
<% @users.each do |user| %>
<li>
<%= link_to user.name, user %> |
<%= link_to "delete", user, method: :delete,
data: { confirm: "You sure?" } %>
</li>
<% end %>
</ul>