Re: [Rails] Updating attribute on dependent of many-to-on association

2012-05-25 Thread ddoherty03
Colin, Thanks for taking a look at this. After a good night's sleep, I came back to this, and the problem appears to be that I need to self.reload after the loop. I believe this is because of the nature of the association, which depend on whether debit is true or false, and I believe need r

Re: [Rails] Updating attribute on dependent of many-to-on association

2012-05-25 Thread Colin Law
On 25 May 2012 04:43, ddoherty03 wrote: > All, > > I posted this over on comp.lang.ruby, but realized I should probably > keep Rails questions to this group, so soory for the cross-post. > > I have a rails app with a Transaction class that has_many :entries. > Each Transaction has many entries, an

[Rails] Updating attribute on dependent of many-to-on association

2012-05-24 Thread ddoherty03
All, I posted this over on comp.lang.ruby, but realized I should probably keep Rails questions to this group, so soory for the cross-post. I have a rails app with a Transaction class that has_many :entries. Each Transaction has many entries, and those with the debit attribute true are debits, fal