the hardest thing that I had to overcome in this project was dealing with my rails and the belongs to and has many. The was I set up the transaction and budget model was that a transaction belongs to a budget and a budget has many. The transaction model also had its on account, which was a string with a given name that the transaction belonged too. The problem come in when I wanted to have a transaction without linking a budget to it as it would either add income or outcome from the account itself. Rails did not like this as it had to have an ID to be created, so after six hours I came up with creating a join table through a model to be created if there was a budget to be linked with a transaction.