app/views/admin/robots/index.html.erb
<div class="page-header"><h1>Listing robots</h1></div>
<table class="table">
<tr>
<th>Name</th>
<th>Location</th>
<th>Show</th>
<th>Edit</th>
<th>Delete</th>
</tr>
<% for robot in @robots %>
<tr>
<td><%=h robot.name %></td>
<td><%=h robot.location %></td>
<td><%= link_to 'Show', admin_robot_path(robot) %></td>
<td><%= link_to 'Edit', edit_admin_robot_path(robot) %></td>
<td><%= link_to 'Delete', admin_robot_path(robot), confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New robot', new_admin_robot_path %>