Possible Duplicate:
Get person's age in Ruby
I am very new to Ruby on Rails, and I have just created a small program to store people, using their names, dates of birth (dob), genders, etc. However, when I query the people from the database using @persons = Persons.find(:all)
, and I try to list them, I'd love to display their age, that is, today - persons.dob, rather than their date of birth proper.