diff --git a/app/helpers/accounts_helper.rb b/app/helpers/accounts_helper.rb index 17850b4b..0673bf2a 100644 --- a/app/helpers/accounts_helper.rb +++ b/app/helpers/accounts_helper.rb @@ -1,2 +1,5 @@ module AccountsHelper + def to_accountable_title(accountable) + accountable.model_name.human + end end diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb index ef727457..34bc5672 100644 --- a/app/views/accounts/index.html.erb +++ b/app/views/accounts/index.html.erb @@ -3,14 +3,14 @@

<%#= number_to_currency Current.family.cash_balance %>

<% Current.family.accounts.each do |account| %> -
-
+
+
<%= account.name %>
-
- <%= account.accountable.model_name.human %> +
+ <%= to_accountable_title(account.accountable) %>
-

+

<%= humanized_money_with_symbol account.balance %>