Affiliate program on ruby on rails

Hi, All!

As it says here - :
“This post is dedicated to building a secure Ruby on Rails Affiliate
Program (using MySQL and/or PosgreSQL) that can track and process
purchases, affiliate referrals, and payout affiliate bonuses owed to
affiliates via a payment system.”

And the question is - Does anybody know affiliate program written on
ruby on rails ? If not, what is the most advanced solution based on php?

Thanks in advance.