Rails API tutorial -- http://apionrails.icalialabs.com/book/