integrating rails and angular