# Acts\_as\_taggable plugin to tag multiple fields in a model

**URL:** <https://www.ruby-forum.com/t/acts-as-taggable-plugin-to-tag-multiple-fields-in-a-model/89487>\
**Category:** Rails\
**Created:** [March 28, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-plugin-to-tag-multiple-fields-in-a-model/89487 "2006-03-28T22:36:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaishal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a3d4f5/32.png) [@Vaishal\_S](https://www.ruby-forum.com/u/Vaishal_S)\
**Post date:** [March 28, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-plugin-to-tag-multiple-fields-in-a-model/89487/1 "2006-03-28T22:36:50Z")

</div>

Hello,

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,  
can  
anyone provide pointers on how I would achieve something like that?

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

Thanks,  
Vaishal

---

<div class="post-metadata">

**Author:** ![Vaishal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a3d4f5/32.png) [@Vaishal\_S](https://www.ruby-forum.com/u/Vaishal_S)\
**Post date:** [April 21, 2006, 3:49pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-plugin-to-tag-multiple-fields-in-a-model/89487/2 "2006-04-21T15:49:58Z")

</div>

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.  
[http://jim.eponym.com/](http://jim.eponym.com/)  
removed\_email\_address@domain.invalid
