Forum: Ruby on Rails acts_as_taggable and deleting tags

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ac31d0d6453b50ad6fdfe16742273424?d=identicon&s=25 unknown (Guest)
on 2006-03-23 23: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
taggings
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


_______________________
John McGrath
http://fryolator.com

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