[Rails] ROR Recipes Beta: Why use taggings instead of
tags_contacts? NoMethodError tag_with?
softwareengineer 99
softwareengineer99 at yahoo.com
Mon Feb 13 18:26:49 GMT 2006
Wow, it feels great to receive a reply from David himself.
Thanks a lot man for the clarification.
You are doing a great job and like other ROR developers, I greatly appreciate your efforts.
Frank
David Heinemeier Hansson <david.heinemeier at gmail.com> wrote: > But when the top dog of Rails creates a namespace clash with a
> well-known gem, it sure would be nice to have some leadership and not
> defer to the magic of open-source community to sort it out eventually.
Namespace clashes are problematic for packages that wants to be used
concurrently, not for alternatives. How would the situation have
improved if I had called it acts_as_polymorphically_taggable (except
for making jokes about such a terrible, terrible name)? Would we not
have had the same questions as to what does what and why? Of course we
would.
In any case, let me summarize the difference quickly. The main
difference is not plugin vs gem, but rather that my version of
acts_as_taggable is designed to work with multiple classes. So a
single tag can be used in the tagging of multiple classes. This
requires polymorphic associations and join models, which is why it
only works Edge Rails (and will work in the forthcoming 1.1).
So if you need that feature, tagging of multiple classes with the same
tags, then use my version. Otherwise, the old version is probably
better. It's certainly more feature-rich and better documented.
--
David Heinemeier Hansson
http://www.loudthinking.com -- Broadcasting Brain
http://www.basecamphq.com -- Online project management
http://www.backpackit.com -- Personal information manager
http://www.rubyonrails.com -- Web-application framework
_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/4c141be7/attachment-0001.html
More information about the Rails
mailing list