X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fpurchase%2Flist.rhtml;h=4b2306d0a4f9bf7219caa980f15123279c95fb53;hb=refs%2Ftags%2Fturned-in;hp=6887d135c81f78f5859de9a559541a5858d885d0;hpb=f102e2d11bd1633579c7cfc244a38a9d8929bd06;p=cs356-p2-videostore.git diff --git a/app/views/purchase/list.rhtml b/app/views/purchase/list.rhtml index 6887d13..4b2306d 100644 --- a/app/views/purchase/list.rhtml +++ b/app/views/purchase/list.rhtml @@ -12,9 +12,9 @@ <% for purchase in @purchases %> <%=link_to purchase.date, :action => 'filterbydate', :id => purchase.date %> - <%=link_to purchase.class, :action => 'filterbytype', :id => purchase.type %> + <%=link_to purchase.class, :action => 'filterbytype', :id => purchase.class %> <%=h purchase.title %> - <%=h purchase.price %> + <%=h number_to_currency(purchase.price) %> <%=link_to purchase.customer.name, :action => 'filterbycust', :id => purchase.customer_id %> <% end %>