Added rails resource to establish binding between rails and angular