app/views/clients/index.html.erb
<h1>Listing clients</h1>
<table class="table">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<% @clients.each do |client| %>
<tr>
<td><%= client.name %></td>
<td>
<%= link_to 'Addresses', client_addresses_path(client), class: 'btn btn-small' %>
<%= link_to 'Show', client, class: 'btn btn-small' %>
<%= link_to 'Edit', edit_client_path(client), class: 'btn btn-small' %>
<%= link_to 'Destroy', client, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-small btn-danger' %>
</td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Client', new_client_path, class: 'btn btn-small btn-primary' %>