rails api with angular