Rails API for a TodoMVC implementation with EmberJS