search for: find_related_tag

Displaying 2 results from an estimated 2 matches for "find_related_tag".

Did you mean: find_related_tags
2006 Apr 20
5
acts_as_taggable patch 3866 needs some testing
...cumentation, and tests: # Get tags for all articles in a blog @blog.articles.tags # Get tags for articles in a blog published in the last year @blog.articles.tags :conditions => [''published_at > ?'', 1.year.ago] # Get related tags from article tags in a blog @blog.articles.find_related_tags [''code'', ''rails''] # Get blog articles tagged with any/all tags @blog.articles.find_tagged_with :all => [''code'', ''rails''] @blog.articles.find_tagged_with :any => [''code'', ''rails''] @blo...
2007 Apr 23
1
Find related tags with acts_as_taggable
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...