1 <h1>Search Results for '<%= @query[0].to_s %>'</h1>
3 <% if @customers.empty? %>
4 <p>Sorry, there were no results</p>
14 <% for customer in @customers %>
16 <td><%=h customer.id %></td>
17 <td><%=link_to customer.name.to_s, :action => 'show', :id => customer %></td>
18 <td><%=h customer.phone %></td>
19 <td><%=h number_to_currency(customer.debt) %></td>
20 <td><%= link_to "Checked Out Items", :controller => :coitem, :action => 'filterbycustomerid', :id => customer %></td>
21 <td><%= link_to 'Edit', :action => 'edit', :id => customer %></td>
22 <td><%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %></td>