Sporkmonger

purveyor of fabulously ambiguous eating utensils

Another TagTools release

Posted by sporkmonger
Written September 21st, 2005

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

More TagTools stuff

Posted by sporkmonger
Written September 8th, 2005

I released TagTools 0.0.2 a little while ago. It includes a bug fix for a pretty nasty defect that Saimon Moore noticed, so you’ll definately want to pick that up. I also made it so that the include? method takes either a Tag object or a string. More stuff coming soon.

TagTools project

Posted by sporkmonger
Written August 28th, 2005

Well, I woke up this morning to see an entry on tagging with Rails in NewNewsWire. I commented about the implementation on the ROR weblog.

So anyways, I’ve been working for the last week or so on a tagging system for Rails. When I saw the post I decided to try to finish my code before the day was over. 200mg of caffeine later… well… it’s now 5:30am. I finally got it clean enough for public consumption, though it may still have at least a couple of bugs to work out. Lots more features coming soon, including related tags.

Have fun with the thing! Let me know if you have any issue with it. I’ll probably wake up in a week or two to deal with the bugs. Good night!

TagTools documentation.