On Mon, Mar 8, 2010 at 10:20 PM, eggie5 <egg...@gmail.com> wrote: > thanks you! polymorphic association it's called you say. It works > now. >
You might want to have a look at the acts_as_commentable plugin http://github.com/jackdempsey/acts_as_commentable It expands on this idea, but uses commentable rather than attachable as the association name, which I think makes a bit more sense, and is less likely to collide if you decide that one or more of the models which can have comments can also have uploaded files as attachments. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- 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-t...@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.