Easy Tagging with Rails
A relatively new feature availaible in Ruby on Rails is a Folksonomy GEM that makes adding tagging to your web apps relatively trivial.
More information on the acts_as_taggable plugin can be found at the Rails Wiki.
A relatively new feature availaible in Ruby on Rails is a Folksonomy GEM that makes adding tagging to your web apps relatively trivial.
More information on the acts_as_taggable plugin can be found at the Rails Wiki.
And coincidentally Pragmatic Programmers has a free Rails Recipe chapter on using this mixin at: http://media.pragprog.com/titles/fr_rr/Tagging.pdf (This tutorial requires a little knowledge of rails migrations, which you should use for every rails project).
Just a small tip you might not find easily, when using acts_as_taggable you need to install edge rails using the latest svn. acts_as_taggable takes advantage of polymorphic features not currently found in the 1.0 version of Active Record. This is why you’ll see some tutorials on the web referring to Rails 1.1 (which doesn’t exist quite yet).
There are some great tutorial s out there for working with acts_as_taggable, one of my favorites shows how to create a cloud tag:
http://blog.craz8.com/articles/2005/10/28/acts_as_taggable-is-a-cool-piece-of-code