thank you for reply: what i want to do is when a user C make a purchase, his godparent ( user B ) win some money and also the godparent of B ( user A). in the users table i come to add a column named "commission". so when B make purchase, B.commission += 1 and A.commission += 0.5 there's a way to do this please. what code you want!? https://gist.github.com/anonymous/29ef897f922ad9878d4c
-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3863495db714ff4381815eedbb8e0dea%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.

