Rails tagging and tag list

xpepermint picture xpepermint · Jan 1, 2010 · Viewed 7k times · Source

I saw alot of good tagging plugins but are these plugins really what I want?

I want to: - Tag products, users and news - Search by tags - List all tags like SELECT DISTINCT tag (for a autocomplete tag list and button tags like here on stackoverflow).

I'm thinking of a separated model Tag. What is the best way to do it?

Answer

schmitzelburger picture schmitzelburger · Jan 1, 2010

The two most popular plugins (according to Ruby Toolbox) both use two separate models to realize tagging of arbitrary classes. Since your classes seem to be known beforehand, you might get away with using just one. Here are the proper URLs to both plugins for reference: