I''m having an interesting issue in terms of dependencies.
I have a truck record, which has_one employee. Then I have a master
record, which has_many truck records. The problem is this:
If there exists a master record, with a truck record, with an
employee, and the employee is then deleted, the truck record will be
deleted. However, the deletion doesn''t cascade to the master record,
so it becomes invalid. If the master record is then selected to be
deleted, an error is returned saying that the truck record could not
be found for deletion.
Currently I have them set up with the :dependent => :destroy
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.