I understand basic relationships in rails, but I''m confused on how to solve a particular problem. I have posts and products. Both of which should be able to have multiple photos uploaded to them. So, posts have many photos and photos belongs to posts - BUT products have many photos too and photos belongs to products. Products and posts have no relationship but they share the same child. Is there a clean (non-hack) sort of way to solve this in Rails without creating a bunch of extra classes. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---