Brian Lin
2006-Feb-10 20:22 UTC
[Rails] Deleting the association entry for has_and_belongs_to_many when one object is destroyed
I know that for has_many, and has_one. I can do :dependent => true and the associated object will be destroyed when the main object is destroyed. However, there does not seem to be a dependent like option for has_and_belongs_to_many. Is there one I do not know of? Is there a simple solution to this? Thanks, Brian -- www.kenlet.com