1 <h1>Listing rentables</h1>
6 <% for column in Rentable.content_columns %>
7 <th><%= column.human_name %></th>
11 <% for rentable in @rentables %>
14 <%=h Video.find(:first, :conditions => "rentable_id='#{rentable.id}'").title.to_s if Video.find(:first, :conditions => "rentable_id='#{rentable.id}'") %>
16 <% for column in Rentable.content_columns %>
17 <td><%=h rentable.send(column.name) %></td>
19 <td><%= link_to 'Show', :action => 'show', :id => rentable %></td>
20 <td><%= link_to 'Edit', :action => 'edit', :id => rentable %></td>
21 <td><%= link_to 'Destroy', { :action => 'destroy', :id => rentable }, :confirm => 'Are you sure?', :method => :post %></td>
26 <%= link_to 'Previous page', { :page => @rentable_pages.current.previous } if @rentable_pages.current.previous %>
27 <%= link_to 'Next page', { :page => @rentable_pages.current.next } if @rentable_pages.current.next %>
31 <%= link_to 'New rentable', :action => 'new' %>