from angular to rails with love