Practice persisting data with angular using rails