Adam,
Once you''ve found the objects in question you can do the following to
remove book2 from author1''s books collection:
author1.books.delete(book2)
This will only remove book2 from the habtm association with author1.
It will not delete book2 from the database.
Cody
On 11/4/05, Adam Denenberg <adam-fpx97dFL/ODYtjvyW6yDsg@public.gmane.org>
wrote:> what is the best way to delete from an HABTM table ?
>
> if i have authors / books . how do i say , delete book2 from author 1 ?
>
> thanks
> adam
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>