Yes, I was almost thinking that my self. Thanks for clarifying that. What I now is trying to do is to have a generic model called Item that relates to the different items through a itemable interface (belongs_to :itemable, polymorphic => true). And then the Item model belongs to the Section. What do you think of that?
On 12 Maj, 11:59, David Bourguignon <[email protected]> wrote: > Hello, > STI seems not suitable, I would call that abuse, unless you have almost > everything common between yout different tables. > > But you can use o polymorphic relation for comment, and extract the common > behaviour in a plugin (something like acts_as_commentable) > > Look here : hhttp:// > guides.rails.info/association_basics.html#polymorphic-associations --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

