Small Cleanups + Merchandise Search
[cs356-p2-videostore.git] / app / views / rentable_policy / list.rhtml
index a5be4fb..5297424 100644 (file)
@@ -2,17 +2,14 @@
 
 <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 %>