1 <h1>Rental Policies</h1>
5 <% for column in RentablePolicy.content_columns %>
6 <th><%= column.human_name %></th>
10 <% for rentable_policy in @rentable_policies %>
12 <% for column in RentablePolicy.content_columns %>
13 <td><%=h rentable_policy.send(column.name) %></td>
15 <td><%= link_to 'View', :action => 'show', :id => rentable_policy %></td>
16 <td><%= link_to 'Edit', :action => 'edit', :id => rentable_policy %></td>
21 <%= link_to 'Previous page', { :page => @rentable_policy_pages.current.previous } if @rentable_policy_pages.current.previous %>
22 <%= link_to 'Next page', { :page => @rentable_policy_pages.current.next } if @rentable_policy_pages.current.next %>
26 <%= link_to 'New rentable_policy', :action => 'new' %>