projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prettify the Customer pages
[cs356-p2-videostore.git]
/
app
/
views
/
rentable
/
list.rhtml
diff --git
a/app/views/rentable/list.rhtml
b/app/views/rentable/list.rhtml
index
0fe063d
..
39883c5
100644
(file)
--- a/
app/views/rentable/list.rhtml
+++ b/
app/views/rentable/list.rhtml
@@
-2,7
+2,6
@@
<table>
<tr>
<table>
<tr>
- <th>Title</th>
<% for column in Rentable.content_columns %>
<th><%= column.human_name %></th>
<% end %>
<% for column in Rentable.content_columns %>
<th><%= column.human_name %></th>
<% end %>
@@
-10,9
+9,6
@@
<% for rentable in @rentables %>
<tr>
<% for rentable in @rentables %>
<tr>
- <td>
- <%=h Video.find(:first, :conditions => "rentable_id='#{rentable.id}'").title.to_s if Video.find(:first, :conditions => "rentable_id='#{rentable.id}'") %>
- </td>
<% for column in Rentable.content_columns %>
<td><%=h rentable.send(column.name) %></td>
<% end %>
<% for column in Rentable.content_columns %>
<td><%=h rentable.send(column.name) %></td>
<% end %>