projects
/
cs356-p2-videostore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
134e695
)
Add customer id numbers to the listing
author
Ira W. Snyder
<devel@irasnyder.com>
Thu, 22 Nov 2007 05:21:52 +0000
(21:21 -0800)
committer
Ira W. Snyder
<devel@irasnyder.com>
Thu, 22 Nov 2007 05:21:52 +0000
(21:21 -0800)
This adds a table column for customer id numbers while listing customers,
just for convenience.
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
app/views/customer/list.rhtml
patch
|
blob
|
history
diff --git
a/app/views/customer/list.rhtml
b/app/views/customer/list.rhtml
index
fb29a65
..
30ffdb6
100644
(file)
--- a/
app/views/customer/list.rhtml
+++ b/
app/views/customer/list.rhtml
@@
-2,6
+2,7
@@
<table>
<tr>
+ <th>Customer ID</th>
<% for column in Customer.content_columns %>
<th><%= column.human_name %></th>
<% end %>
@@
-9,6
+10,7
@@
<% for customer in @customers %>
<tr>
+ <td><%=h customer.id %></td>
<% for column in Customer.content_columns %>
<td><%=h customer.send(column.name) %></td>
<% end %>