From angular to rails