<table>
<tr>
- <th>Title</th>
<% for column in Rentable.content_columns %>
<th><%= column.human_name %></th>
<% end %>
<% 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 %>