Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails tagging and tag list

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?

like image 863
xpepermint Avatar asked Jan 01 '10 15:01

xpepermint


1 Answers

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:

  • acts-as-taggable-on
  • is_taggable
like image 53
schmitzelburger Avatar answered Oct 13 '22 00:10

schmitzelburger