I’m working on a small checkbook balancing webapp to teach myself rails. Account has a balance field, which I would like to update when any of the the related Transaction.amount fields are changed/created. I’m looking through the docs, but I’m having a hard time visualizing how to do this.
I’m working on a small checkbook balancing webapp to teach myself rails. Account has
Share
You should employ an observer to do the job. Please checkout the docs.