ember-resource icon indicating copy to clipboard operation
ember-resource copied to clipboard

Uncaught TypeError: Cannot call method 'property' of undefined

Open arasbm opened this issue 12 years ago • 0 comments

Hi, I am trying to define Resource objects to connect to an API in the following format:

{
  blocks: [
    {
      id: 1,
      name: "Search Action"
    },
    {
      id: 2,
      name: "Refresh Action"
    }
  ]
}

When I use an API in this format with a Resource I get the error in title

uncaught TypeError: Cannot call method 'property' of undefined

I have put more details about this problem in these SO questions: http://stackoverflow.com/questions/12415302/type-error-using-ember-resource-with-ember-js-and-rails http://stackoverflow.com/questions/12443125/how-can-i-connect-array-of-objects-returned-from-an-api-to-ember-resource

I now suspect it may be a bug, so decided to report here. But if it is something I am doing wrong, I would appreciate any help.

arasbm avatar Sep 15 '12 23:09 arasbm