2014-10-15 16:40:46 -04:00
|
|
|
<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>
|
2014-10-27 11:16:10 -04:00
|
|
|
<%= link_to glyph('plus'), friendships_path(:friend_id => user),
|
|
|
|
:method => :post %>
|
2014-10-15 16:40:46 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|