X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcustomer%2Flist.rhtml;h=c9bce2b3cf2151838748e731865b9ad91d93b6e7;hb=bbf13350a73e14c5448f6fb0077126b7d92cdb48;hp=fb29a6587e7e1c03adef1fb50210c93db8780461;hpb=f09365a8d79a8a4a756fdba732bb753829df0df2;p=cs356-p2-videostore.git diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml index fb29a65..c9bce2b 100644 --- a/app/views/customer/list.rhtml +++ b/app/views/customer/list.rhtml @@ -1,7 +1,8 @@ -

Listing customers

+

Listing Customers

- +
+ <% for column in Customer.content_columns %> <% end %> @@ -9,12 +10,13 @@ <% for customer in @customers %> + <% for column in Customer.content_columns %> <% end %> - + - + <% end %>
Customer ID<%= column.human_name %>
<%=h customer.id %><%=h customer.send(column.name) %><%= link_to 'Show', :action => 'show', :id => customer %><%= link_to 'View', :action => 'show', :id => customer %> <%= link_to 'Edit', :action => 'edit', :id => customer %><%= link_to 'Destroy', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %><%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %>