I have some information (a value and a percentage number) saved in the
database. for example 5 records. I wrote a model, who's look like as the
I believe what you want is a callback. In your case, it looks like an
after save callback will do what you want:
class Percentage < AR::Base
# Do what you need with the other models here. This will only be called
# after this model is saved.
For the full details,
Hope that helps !