link activerecord with product