Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot call method 'property' of undefined #47

Open
arasbm opened this issue Sep 15, 2012 · 0 comments
Open

Uncaught TypeError: Cannot call method 'property' of undefined #47

arasbm opened this issue Sep 15, 2012 · 0 comments

Comments

@arasbm
Copy link

arasbm commented Sep 15, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant