X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fmerchandise%2Fshow.rhtml;fp=app%2Fviews%2Fmerchandise%2Fshow.rhtml;h=2180bfe696825de30bf95ac3b32f392a1d66d7b4;hb=d2081caee4ce19c6d9638fdb18d77a3c3b80e587;hp=9c906245cec4333a099ecda130360b2c20216322;hpb=f055d1d571511ca016711e39d12a62f5f5a0ea59;p=cs356-p2-videostore.git diff --git a/app/views/merchandise/show.rhtml b/app/views/merchandise/show.rhtml index 9c90624..2180bfe 100644 --- a/app/views/merchandise/show.rhtml +++ b/app/views/merchandise/show.rhtml @@ -1,8 +1,7 @@ -<% for column in Merchandise.content_columns %> -

- <%= column.human_name %>: <%=h @merchandise.send(column.name) %> -

-<% end %> +

Merchandise ID: <%=h @merchandise.id.to_s %>

+

Title: <%=h @merchandise.title %>

+

Quantity Remaining: <%=h @merchandise.quantity %>

+

Price Per Unit: <%=h number_to_currency(@merchandise.price) %>

<%= link_to 'Edit', :action => 'edit', :id => @merchandise %> | <%= link_to 'Back', :action => 'list' %>