+ <td><%=h coitem.rentable.class %></td>
+ <% if coitem.rentable.type == Game %>
+ <td><%=link_to coitem.rentable.title.to_s, :controller => 'game', :action => 'show', :id => coitem.rentable %></td>
+ <% else %>
+ <td><%=link_to coitem.rentable.title.to_s, :controller => 'video', :action => 'show', :id => coitem.rentable %></td>
+ <% end %>