this is a follow up question of this How to fetch index data in Angular using rails server
Question How to correctly upload / link angular module with h
You have syntax errors with the following
return $resource "users/:id", { id: '@id' }, { ... }
Should be
return $resource("users/:id", { id: '@id' }, { ... });