From Learn Ruby on Rails (learnrails.com) - Daniel Kehoe