Dear all, I am currently confused with defining model in Rails that has two has_many relationship.
I have a model that is called Category, and this model will be used by two model which is Product and Blog. Would this definition make sense in rails ? Category has_many :product has_many :blog Product belongs_to :category Blog belongs_to :category Or is there a better way to do it in Rails? Thanks for the hint. -- Not by might nor by power, but by His Spirit. Read my blog: http://joshuajava.wordpress.com/ Follow me on twitter: http://twitter.com/jpartogi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---