app/views/staffs/contact_networks/_table.html.erb
<table class="table">
<thead>
<tr>
<th scope="col">
<%= ContactNetwork.human_attribute_name :codename %>
</th>
<th scope="col">
<%= ContactNetwork.human_attribute_name :name %>
</th>
<th scope="col">
<%= ContactNetwork.human_attribute_name :link %>
</th>
<th scope="col">
<%= ContactNetwork.human_attribute_name :contacts %>
</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% contact_networks.each do |contact_network| %>
<tr>
<td scope="row"><%= contact_network.codename %></td>
<td><%= contact_network.name %></td>
<td><%= contact_network.link %></td>
<td><%= contact_network.contacts.count %></td>
<td></td>
</tr>
<% end %>
</tbody>
</table>