2014-10-15 16:40:46 -04:00
|
|
|
<h2>User List</h2>
|
|
|
|
|
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-10-27 12:16:50 -04:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Created</th>
|
|
|
|
<th>Updated</th>
|
|
|
|
<th>Actions</th>
|
2014-10-15 16:40:46 -04:00
|
|
|
</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>
|