1 <h1>Listing Customers</h1>
11 <% for customer in @customers %>
13 <td><%=h customer.id %></td>
14 <td><%=link_to customer.name.to_s, :action => 'show', :id => customer %></td>
15 <td><%=h customer.phone %></td>
16 <td><%=h number_to_currency(customer.debt) %></td>
17 <td><%= link_to "Checked Out Items", :controller => :coitem, :action => 'filterbycustomerid', :id => customer %></td>
18 <td><%= link_to 'Edit', :action => 'edit', :id => customer %></td>
19 <td><%= link_to 'Remove', { :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' %>