Another TagTools release
I’ve updated TagTools to 0.0.3 and I think I’ve quashed most of the obvious bugs at this point. Within the next version or two, I think we’ll be able to consider it out of public alpha testing and into perpetual beta. :-P
The main new feature with this version, besides more correct results and additional unit tests, is that you can now do tag queries across all taggable objects at once. So if you searched for objects tagged with “sunflower” and you have, say, multiple images and bookmarks that are tagged with it, you’ll get a list of everything, regardless of type, that matches the given query. This would enable things along the lines of the Technorati tags pages where multiple object types are pulled in for a tag.
To enable this capability, you need to extend your Tag class with the TaggingHelpers module.
Like so:1 2 3 4 |
class Tag < ActiveRecord::Base extend TaggingHelpers end |