Pedro Del gallego wrote:
Thanks Pedro, this is a first step in the right direction.
Now I would like to add support for polymorphism, I mean
that the item
related could be of different class (this -> related_to
-> book, this ->
related_to -> image, and so on)
It seems that it's not a simple case
(http://blog.hasmanythrough.com/2006/4/3/polymorphic-t
hrough)
Does it changed with Rails 2.0 ?
I tried the solution provided on the hasmanythrough blog but
without
success.
Should I go to the has_many_polymorphs plugin ??
(http://blog.evanweaver.com/files
/doc/fauna/has_many_polymorphs/files/README.html)
I don't like the idea of overusing plugins when I don't know
how to
handle a special situation... It's kind of black box in that
case
Thanks
--
Posted via http://www.ruby-forum.com
/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|