[Brug-talk] How to efficiently implement tags in Ruby on Rails + mysql
Alain Ravet
alain.ravet at gmail.com
Sun Nov 25 06:00:13 EST 2007
Peter,
> I would appreciate some hints or pointers on this problem.
> I need to "tag" a number of items where I have defined ...
There is a boatload of tag-oriented plugins :
http://agilewebdevelopment.com/plugins/search?search=tag*
that you could use as a starting point.
Start by reading the code of :
* acts_as_taggable
the grand dad of all, written by DHH - I think - to illustrate
polymorphism. It's frozen, not supported, not documented and not
tested, but it is easy to read and understand.
Then, look at :
* acts_as_taggable_on_sterois
It's alive, documented, and supported.
Depending on your needs, you can customize the Tag/Tagging models.
Alain
More information about the Brug-talk
mailing list