I have two objects as follows:
BankAccount account_credit_to # in the db table account_credit_to
BankAccount account_debit_from # int in db table
Each transaction is associated with exactly 2 accounts.
How do I map these as Ruby models and access the objects.
Here is my attempt:
#*** here how do I tell that this transaction references two
accounts *** ?
And how do I access them in the controller?
ba = BankAccount.new
Thanks in Advance!