app/views/states/index.html.erb
<p id="notice"><%= notice %></p>
<h1>States</h1>
<table>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Capital</th>
<th>Population</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @states.each do |state| %>
<tr>
<td><%= state.id %></td>
<td><%= state.name %></td>
<td><%= state.capital %></td>
<td><%= state.population %></td>
<td><%= link_to 'Show', state %></td>
<td><%= link_to 'Edit', edit_state_path(state) %></td>
<td><%= link_to 'Destroy', state, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New State', new_state_path %>