<table border="1">
<tr>
- <% for column in RentablePolicy.content_columns %>
- <th><%= column.human_name %></th>
- <% end %>
+ <th>Description</th>
+ <th>Quantity</th>
</tr>
<% for rentable_policy in @rentable_policies %>
<tr>
- <% for column in RentablePolicy.content_columns %>
- <td><%=h rentable_policy.send(column.name) %></td>
- <% end %>
- <td><%= link_to 'View', :action => 'show', :id => rentable_policy %></td>
+ <td><%=h rentable_policy.description %></td>
+ <td><%=h rentable_policy.value %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => rentable_policy %></td>
</tr>
<% end %>