Prettify and add the Merchandise pages
[cs356-p2-videostore.git] / app / views / merchandise / show.rhtml
index 9c90624..2180bfe 100644 (file)
@@ -1,8 +1,7 @@
-<% for column in Merchandise.content_columns %>
-<p>
-  <b><%= column.human_name %>:</b> <%=h @merchandise.send(column.name) %>
-</p>
-<% end %>
+<p><b>Merchandise ID: </b><%=h @merchandise.id.to_s %></p>
+<p><b>Title: </b><%=h @merchandise.title %></p>
+<p><b>Quantity Remaining: </b><%=h @merchandise.quantity %></p>
+<p><b>Price Per Unit: </b><%=h number_to_currency(@merchandise.price) %></p>
 
 <%= link_to 'Edit', :action => 'edit', :id => @merchandise %> |
 <%= link_to 'Back', :action => 'list' %>