Update affiliate.rb