Listing Checked Out Items

<% for coitem in @coitems %> <% if coitem.rentable.type == Game %> <% else %> <% end %> <% end %>
Item ID Customer Type Rentable Overdue Date Checked Out Due Date
<%=h coitem.rentable.id.to_s %> <%=h coitem.customer.name %> <%=h coitem.rentable.class %><%=link_to coitem.rentable.title.to_s, :controller => 'game', :action => 'show', :id => coitem.rentable %><%=link_to coitem.rentable.title.to_s, :controller => 'video', :action => 'show', :id => coitem.rentable %><%=h tf_to_yesno(coitem.overdue?) %> <%=h coitem.out_date %> <%=link_to coitem.due_date.to_s, :action => 'edit', :id => coitem %>
<%= link_to 'Previous page', { :page => @coitem_pages.current.previous } if @coitem_pages.current.previous %> <%= link_to 'Next page', { :page => @coitem_pages.current.next } if @coitem_pages.current.next %>