Rails API to work with the Ionic project