Angular uses rails resource