Listing Customers

<% for customer in @customers %> <% end %>
Customer ID Name Phone Balance
<%=h customer.id %> <%=link_to customer.name.to_s, :action => 'show', :id => customer %> <%=h customer.phone %> <%=h number_to_currency(customer.debt) %> <%= link_to "Checked Out Items", :controller => :coitem, :action => 'filterbycustomerid', :id => customer %> <%= link_to 'Edit', :action => 'edit', :id => customer %> <%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %>
<%= link_to 'Previous page', { :page => @customer_pages.current.previous } if @customer_pages.current.previous %> <%= link_to 'Next page', { :page => @customer_pages.current.next } if @customer_pages.current.next %>
<%= link_to 'New customer', :action => 'new' %>