http://apionrails.icalialabs.com/book/chapter_one#cha-chapter_one