Small Cleanups + Merchandise Search
[cs356-p2-videostore.git] / app / views / purchase / list.rhtml
index 6887d13..4b2306d 100644 (file)
@@ -12,9 +12,9 @@
 <% 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 purchase.price %></td>
+    <td><%=h number_to_currency(purchase.price) %></td>
     <td><%=link_to purchase.customer.name, :action => 'filterbycust', :id => purchase.customer_id %></td>
   </tr>
 <% end %>