1
0
Fork 0
find-us-lunch/app/views/users/index.html.erb

25 lines
500 B
Plaintext

<h2>User List</h2>
<table class="table table-striped table-hover">
<thead>
<tr>
<td>Name</td>
<td>Created</td>
<td>Updated</td>
<td>Actions</td>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr>
<td><%= link_to user.name, user %></td>
<td><%= user.created_at %></td>
<td><%= user.updated_at %></td>
<td>
<%= link_to '+', friendships_path(:friend_id => user), :method => :post %>
</td>
</tr>
<% end %>
</tbody>
</table>