integrating rails 4 and angular js