<%=h @account.name %> Account

ID Name Type Credit Balance Debit Balance Balance
<%=h @account.id %> <%=h @account.name %> <%=h @account.type %> <%=h @account.credits_balance %> <%=h @account.debits_balance %> <%=h @account.balance %>

Credit Transactions

<% @account.credit_transactions.each do |transaction| %> "> <% end %>
ID Description Credit Account Debit Account Amount Date
<%=h transaction.id %> <%=h transaction.description %> <%=h transaction.credit_account.name %> <%=h transaction.debit_account.name %> <%=h transaction.amount %> <%=h transaction.created_at %>

Debit Transactions

<% @account.debit_transactions.each do |transaction| %> "> <% end %>
ID Description Credit Account Debit Account Amount Date
<%=h transaction.id %> <%=h transaction.description %> <%=h transaction.credit_account.name %> <%=h transaction.debit_account.name %> <%=h transaction.amount %> <%=h transaction.created_at %>