Angular + Rails Single page application recipe METHOD[1]