Forum: Ruby on Rails acts_as_taggable and deleting tags

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-03-24 00:59
(Received via mailing list)
with act_as_taggable plugin, anyone know how to make tags dependent on
the model
they're tagging, so the tags are deleted if the model is? i see that
are deleted, but the tags themselves aren't.

in acts_as_taggable.rb, i tried changing this line:
has_many :tags, :through => :taggings

to mirror the has_many definition for taggings, like so:
has_many :tags, :through => :taggings, :dependent => true

didn't work, though. any suggestions?


John McGrath

This message was sent using IMP, the Internet Messaging Program.
This topic is locked and can not be replied to.