Avid's Book: http://objectsonrails.com/#sec-12_1