#182 ✓resolved
Elliott Mason

Records getting dissociated when using #save

Reported by Elliott Mason | March 18th, 2008 @ 04:35 PM

I'm having a strange problem where already-saved records are getting dissociated from their belongs_to association (foo_id somehow gets set to nil) when that associated object is saved. In my particular case it is when using #update_attributes (which is really just #attributes = {} and then #save). This is really strange behavior to me and I haven't had time to troubleshoot it. I've pasted an abbreviated version of my class...

http://pastie.caboo.se/167514

Any ideas?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages