Heinz Strunk wrote:
> First of all thank you guys! I think what Valentin wrote is just what I 
> was looking for. Person, Car, Truck was just an example. It's a lot more 
> complexe in my application and you can't just merge these two different 
> models into one and add a :type.
> 
> I'll do it like Valentin suggested. Thanks again! :)

It should be noted that Valentin suggested a STI solution (which is what 
I would have recommended) and your question resolved around polymorphic 
associations which is a different concept entirely.  Polymorphic 
associations deal with association polymorphism where as STI deals 
primarily wih model polymorphism.

hth

ilan

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to