X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcustomer%2Flist.rhtml;h=2f4bd9c4c563d48ca7229ea8ce732a0f49be0b0e;hb=e4597521e3a7365f86731f7d69643cb1067acb5e;hp=c9bce2b3cf2151838748e731865b9ad91d93b6e7;hpb=11b4d4103e1c24cb773216b9116d260734395f3c;p=cs356-p2-videostore.git diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml index c9bce2b..2f4bd9c 100644 --- a/app/views/customer/list.rhtml +++ b/app/views/customer/list.rhtml @@ -2,19 +2,19 @@ - - <% for column in Customer.content_columns %> - - <% end %> + + + + <% for customer in @customers %> - - <% for column in Customer.content_columns %> - - <% end %> - + + + + +
Customer ID<%= column.human_name %>Customer IDNamePhoneDebt
<%=h customer.id %><%=h customer.send(column.name) %><%= link_to 'View', :action => 'show', :id => customer %><%=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 %>