1
0
Fork 0
find-us-lunch/app/views/friendships/index.html.erb
2014-10-15 16:46:36 -04:00

21 lines
374 B
Text

<h1>Listing friendships</h1>
<table>
<thead>
<tr>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @friendships.each do |friendship| %>
<tr>
<td><%= link_to 'Destroy', friendship, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'Add a Friend', users_path %>