Acts_as_taggable plugin to tag multiple fields in a model


Is it possible to tag multiple fields in a model using either
acts_as_taggable plugin or gem? If it is not possible out of the box,
anyone provide pointers on how I would achieve something like that?

Say I have a ‘Food’ model which has ‘spices’ and ‘healthiness’
I want to be able to tag on both those fields. Is that possible?


In case no one replied…

The acts_as_taggable plugin (the one originally written by DHH)
allows you to tag on any field that’s declared as taggable, and it
uses a single set of tables for the Tags and Taggings. However, it
does require Rails 1.1 as it uses :through to achieve this magic.

The acts_as_taggable gem uses a separate table to hold the tags for
each model you’re tagging (so you can’t share the vocabulary among
models). I believe it works with Rails 1.0.

I chose the plugin because I knew I wanted a shared vocabulary. YMMV.

Jim K.
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs