Rails API Task