Ruby-on-rails – Rails tagging and tag list

ruby-on-railstaggingtags

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?

Best Answer

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: