# Find related tags with acts\_as\_taggable

**URL:** <https://www.ruby-forum.com/t/find-related-tags-with-acts-as-taggable/92703>\
**Category:** Rails\
**Created:** [April 23, 2007, 6:48am UTC](https://www.ruby-forum.com/t/find-related-tags-with-acts-as-taggable/92703 "2007-04-23T06:48:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSElliott\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@RSElliott\_M](https://www.ruby-forum.com/u/RSElliott_M)\
**Post date:** [April 23, 2007, 6:48am UTC](https://www.ruby-forum.com/t/find-related-tags-with-acts-as-taggable/92703/1 "2007-04-23T06:48:57Z")

</div>

Using the acts\_as\_taggable plugin, how can I go about finding related  
tags? ie specify a tag, find objects that have that tag, and then count  
up its other tags and return say, the top 50 or something, in a method  
something like Tag.find\_related\_tags(tag\_object)

I think the gem has a method like this but the gem hasn’t been updated  
if I’m not mistaken doesn’t use polymorphic associations like the plugin  
does. However how to accomplish this by modifying the plugin has eluded  
me. Any ideas? Perhaps there are other plugins for tagging that have  
more functions?

---

<div class="post-metadata">

**Author:** ![RSElliott\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@RSElliott\_M](https://www.ruby-forum.com/u/RSElliott_M)\
**Post date:** [April 26, 2007, 4:28am UTC](https://www.ruby-forum.com/t/find-related-tags-with-acts-as-taggable/92703/2 "2007-04-26T04:28:23Z")

</div>

Gonna try to bump this one. Still can’t figure it out.
