Two has_many links between the same models
I have users which have products through a habtm link, which is working. I want to add a link between the user model and the product model, to keep track of the creator of that product (who doesn't always own the product, of course) But when I write in my user and product models a new link, the application screws up because I can't distinguish the creator of a product from the owner of (a lot of) products . Can you help me ? Here is my models : class Product < ActiveRecord::Base belongs_to :group has_and_belongs_to_many :authors has_and_belongs_to_many :users # THIS IS OK (with appart table)