Rails API for task manager