Change 'Debt' to 'Balance'
authorIra W. Snyder <devel@irasnyder.com>
Mon, 26 Nov 2007 22:23:51 +0000 (14:23 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Mon, 26 Nov 2007 22:23:51 +0000 (14:23 -0800)
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
app/views/customer/list.rhtml
app/views/customer/show.rhtml
db/development.sqlite3

index 2f4bd9c..e58a35d 100644 (file)
@@ -5,7 +5,7 @@
     <th>Customer ID</th>
     <th>Name</th>
     <th>Phone</th>
-    <th>Debt</th>
+    <th>Balance</th>
   </tr>
   
 <% for customer in @customers %>
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' %>
index 9fcfb99..7f6ff45 100644 (file)
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ