I want to create an after_save method for my rate action. It would divide rating_score/ratings and update the column rating.
class KonkurrancersController &
Not sure why people are upvoting the wrong answer and downvoting the correct answer.
Zakelfassi is right and Christian Fazzini is wrong for Rails 3 and above. If you do #update_attributes in a save callback you go into an endless recursion. You want to do #update_column as per his example.
Try it for yourself and you'll see.