There are two acts_as_taggle plugins, the original gem
and the newer plugin.
The gem uses a tags table and a HABTM table between a
tags table and the table that you want to be taggable.
The newer plugin uses a two table design and is based
upon some post 1.0 features.
--
-- Tom Mornini
On Apr 10, 2006, at 5:04 AM, Andreas wrote:
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails