1 <h1>Listing customers</h1>
6 <% for column in Customer.content_columns %>
7 <th><%= column.human_name %></th>
11 <% for customer in @customers %>
13 <td><%=h customer.id %></td>
14 <% for column in Customer.content_columns %>
15 <td><%=h customer.send(column.name) %></td>
17 <td><%= link_to 'Show', :action => 'show', :id => customer %></td>
18 <td><%= link_to 'Edit', :action => 'edit', :id => customer %></td>
19 <td><%= link_to 'Destroy', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %></td>
24 <%= link_to 'Previous page', { :page => @customer_pages.current.previous } if @customer_pages.current.previous %>
25 <%= link_to 'Next page', { :page => @customer_pages.current.next } if @customer_pages.current.next %>
29 <%= link_to 'New customer', :action => 'new' %>