Forum: Ruby on Rails Keeping a Running Total

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eric M. (Guest)
on 2008-10-11 00:42
(Received via mailing list)
Hello-

I'm working on a site where I need to keep a running tab of inventory
sold. Each of my Item classes has a sku and a quantity. As items get
created, destroyed, and have their quantity changed, I want to alter
the value of a field called "allocated" in my sku class. Ideally, I
want to make this transactional, so the value of "allocated" doesn't
fall out of sync. What is the best way to approach this?

Regards,
Eric
This topic is locked and can not be replied to.