By default, Angular's $resource.$save method sends a request with parameters in the "base" scope. For example, creating resource with properties {name: 'John Smith', email: '[email protected]'} will result in a POST with parameters:
name=John Smith&[email protected].
However, I have a Rails controller that needs the resource scoped to a sub-hash (more like the normal railsy way of doing things). I would want that same create request to have parameters:
user[name]=John Smith&user[email][email protected]
The problem is, I just don't see a way to do this using $resource. Is it possible?