Lots of stuff, I got too tired to keep perfect revision history
[cs356-p2-videostore.git] / app / views / purchase / list.rhtml
index 504bc61..4b2306d 100644 (file)
@@ -12,7 +12,7 @@
 <% for purchase in @purchases %>
   <tr>
     <td><%=link_to purchase.date, :action => 'filterbydate', :id => purchase.date %></td>
-    <td><%=link_to purchase.class, :action => 'filterbytype', :id => purchase.type %></td>
+    <td><%=link_to purchase.class, :action => 'filterbytype', :id => purchase.class %></td>
     <td><%=h purchase.title %></td>
     <td><%=h number_to_currency(purchase.price) %></td>
     <td><%=link_to purchase.customer.name, :action => 'filterbycust', :id => purchase.customer_id %></td>