Rails api for AngularJs test application