app/views/addresses/index.html.erb
<h1>Listing addresses</h1>
<table class="table">
<thead>
<tr>
<th>Business name</th>
<th>Address</th>
<th>Address2</th>
<th>City</th>
<th>County</th>
<th>Country</th>
<th>Postcode</th>
<th></th>
</tr>
</thead>
<tbody>
<% @addresses.each do |address| %>
<tr>
<td><%= address.business_name %></td>
<td><%= address.address %></td>
<td><%= address.address2 %></td>
<td><%= address.city %></td>
<td><%= address.county %></td>
<td><%= address.country %></td>
<td><%= address.postcode %></td>
<td>
<%= link_to 'Show', resource_path(address), class: 'btn btn-small' %>
<%= link_to 'Destroy', resource_path(address), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-small btn-danger' %>
</td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Address', new_resource_url, class: 'btn btn-small btn-primary' %>