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

23 lines
410 B
Text
Raw Normal View History

2014-10-15 13:32:35 -04:00
<h1>Listing friendships</h1>
<table>
<thead>
<tr>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
2014-10-15 17:00:22 -04:00
<% @friends.each do |friendship| %>
2014-10-15 13:32:35 -04:00
<tr>
2014-10-15 17:00:22 -04:00
<td><%= friendship.name %></td>
2014-10-15 13:32:35 -04:00
<td><%= link_to 'Destroy', friendship, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
2014-10-15 16:46:36 -04:00
<%= link_to 'Add a Friend', users_path %>