Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: yossarian dunbar
Multiple tag types per model? [ reply ]  
2007-03-25 20:30
Hi,

Is there any way to use acts_as_taggable to put two types of tag on a model? I have an Event class which is taggable in the normal way, and everything works great. At this point I'd like to add a different kind of tag, a place-related tag, so that I can build up another tag cloud of places where Events happen.

However I can't really see how to accomplish this, it seems like I could define a second :class_name (maybe PlaceTag) but since there is only one event.tag(tags) method, I am not too sure where to go next.

Can this be done using the acts_as_taggable gem? If not, can anyone think of a different way to do it? It seems like some polymorphic associations would do the trick, but then I lose all of the pleasant functionality present in this gem...