I know this is probably stupidly simple, but I can’t seem to figure it
out.
I have a many-to-many association using HABTM. Im trying to clear all
the stuff in the join table and call destroy on all the joined items.
For example if I have a many to many for albums and photos,
def method
album=Album.find(4)
album.photos.clear
NOW HOW DO I DESTROY ALL THOSE PHOTOS?
end
The things I thought would work didn’t.
Any ideas.
Thanks in advance. Aryk