1
0
Fork 0
find-us-lunch/app/views/users/index.html.erb
2014-10-27 12:16:50 -04:00

25 lines
518 B
Text

<h2>User List</h2>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Name</th>
<th>Created</th>
<th>Updated</th>
<th>Actions</th>
</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 glyph('plus'), friendships_path(:friend_id => user),
:method => :post %>
</td>
</tr>
<% end %>
</tbody>
</table>