projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix object relational modeling
[cs356-p2-videostore.git]
/
app
/
views
/
coitem
/
list.rhtml
diff --git
a/app/views/coitem/list.rhtml
b/app/views/coitem/list.rhtml
index
44b9c2d
..
e506366
100644
(file)
--- a/
app/views/coitem/list.rhtml
+++ b/
app/views/coitem/list.rhtml
@@
-11,8
+11,8
@@
<% for coitem in @coitems %>
<tr>
<% for coitem in @coitems %>
<tr>
- <td><%=h
Customer.find(coitem.customer_id)
.name %></td>
- <td><%=h
Rentable.find(coitem.rentable_id)
.title %></td>
+ <td><%=h
coitem.customer
.name %></td>
+ <td><%=h
coitem.rentable
.title %></td>
<% for column in Coitem.content_columns %>
<td><%=h coitem.send(column.name) %></td>
<% end %>
<% for column in Coitem.content_columns %>
<td><%=h coitem.send(column.name) %></td>
<% end %>