-<h1>Listing customers</h1>
+<h1>Listing Customers</h1>
-<table>
+<table border="1">
<tr>
+ <th>Customer ID</th>
<% for column in Customer.content_columns %>
<th><%= column.human_name %></th>
<% end %>
<% for customer in @customers %>
<tr>
+ <td><%=h customer.id %></td>
<% for column in Customer.content_columns %>
<td><%=h customer.send(column.name) %></td>
<% end %>
- <td><%= link_to 'Show', :action => 'show', :id => customer %></td>
+ <td><%= link_to 'View', :action => 'show', :id => customer %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => customer %></td>
- <td><%= link_to 'Destroy', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %></td>
+ <td><%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %></td>
</tr>
<% end %>
</table>