Todos basic crud working with api and rails