I was reading rails recipes and it shows how to use acts_as_taggable
with only 2 tables, a tags and a taggings table.
But I think that its related to an older acts_as_taggable version
because now it seems that it works with one tags table and one taggings
table for each tagable model, like this:
tags
photos
tags_photos
Which means I need one new table for each model I want to tag.
Isn’t there a way to use only 1 table with the taggings, to have a
centralized table for all kinds of items I want to tag?
I read the documentation and I think its possible using the
join_class_name option, but I didn’t manage to work it out. Can anyone
please explain how its done, and please don’t forget how the table
structure works.
Thanks