<% 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 %>