From: Ira W. Snyder Date: Mon, 26 Nov 2007 22:23:51 +0000 (-0800) Subject: Change 'Debt' to 'Balance' X-Git-Tag: turned-in~25 X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=f055d1d571511ca016711e39d12a62f5f5a0ea59;p=cs356-p2-videostore.git Change 'Debt' to 'Balance' Signed-off-by: Ira W. Snyder --- diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml index 2f4bd9c..e58a35d 100644 --- a/app/views/customer/list.rhtml +++ b/app/views/customer/list.rhtml @@ -5,7 +5,7 @@ Customer ID Name Phone - Debt + Balance <% for customer in @customers %> diff --git a/app/views/customer/show.rhtml b/app/views/customer/show.rhtml index fe1aba6..f9b27a6 100644 --- a/app/views/customer/show.rhtml +++ b/app/views/customer/show.rhtml @@ -1,8 +1,8 @@ -<% for column in Customer.content_columns %> -

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

-<% end %> +

Name: <%=h @customer.name %>

+

Address: <%=h @customer.address %>

+

Email: <%=h @customer.email %>

+

Phone: <%=h @customer.phone %>

+

Balance: <%=h number_to_currency(@customer.debt) %>

<%= link_to 'Edit', :action => 'edit', :id => @customer %> | <%= link_to 'Back', :action => 'list' %> diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 9fcfb99..7f6ff45 100644 Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ