1 <h1>Listing coitems</h1>
7 <% for column in Coitem.content_columns %>
8 <th><%= column.human_name %></th>
12 <% for coitem in @coitems %>
14 <td><%=h Customer.find(coitem.customer_id).name %></td>
15 <td><%=h Rentable.find(coitem.rentable_id).title %></td>
16 <% for column in Coitem.content_columns %>
17 <td><%=h coitem.send(column.name) %></td>
19 <td><%= link_to 'Show', :action => 'show', :id => coitem %></td>
20 <td><%= link_to 'Edit', :action => 'edit', :id => coitem %></td>
21 <td><%= link_to 'Destroy', { :action => 'destroy', :id => coitem }, :confirm => 'Are you sure?', :method => :post %></td>
26 <%= link_to 'Previous page', { :page => @coitem_pages.current.previous } if @coitem_pages.current.previous %>
27 <%= link_to 'Next page', { :page => @coitem_pages.current.next } if @coitem_pages.current.next %>
31 <%= link_to 'New coitem', :action => 'new' %>