Change 'Debt' to 'Balance'
[cs356-p2-videostore.git] / app / views / customer / show.rhtml
index fe1aba6..f9b27a6 100644 (file)
@@ -1,8 +1,8 @@
-<% for column in Customer.content_columns %>
-<p>
-  <b><%= column.human_name %>:</b> <%=h @customer.send(column.name) %>
-</p>
-<% end %>
+<p><b>Name: </b><%=h @customer.name %></p>
+<p><b>Address: </b><%=h @customer.address %></p>
+<p><b>Email: </b><%=h @customer.email %></p>
+<p><b>Phone: </b><%=h @customer.phone %></p>
+<p><b>Balance: </b><%=h number_to_currency(@customer.debt) %></p>
 
 <%= link_to 'Edit', :action => 'edit', :id => @customer %> |
 <%= link_to 'Back', :action => 'list' %>