From: Ira W. Snyder Date: Thu, 22 Nov 2007 05:21:52 +0000 (-0800) Subject: Add customer id numbers to the listing X-Git-Tag: turned-in~73 X-Git-Url: https://www.irasnyder.com/gitweb/?p=cs356-p2-videostore.git;a=commitdiff_plain;h=0afc41c8d27c42f33040955d6d25ad92f9fbd73d Add customer id numbers to the listing This adds a table column for customer id numbers while listing customers, just for convenience. Signed-off-by: Ira W. Snyder --- diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml index fb29a65..30ffdb6 100644 --- a/app/views/customer/list.rhtml +++ b/app/views/customer/list.rhtml @@ -2,6 +2,7 @@ + <% for column in Customer.content_columns %> <% end %> @@ -9,6 +10,7 @@ <% for customer in @customers %> + <% for column in Customer.content_columns %> <% end %>
Customer ID<%= column.human_name %>
<%=h customer.id %><%=h customer.send(column.name) %>