Rails API for the ipad app