{"action":"created","issue":{"url":"https://api.github.com/repos/ember-data/active-model-adapter/issues/45","labels_url":"https://api.github.com/repos/ember-data/active-model-adapter/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/ember-data/active-model-adapter/issues/45/comments","events_url":"https://api.github.com/repos/ember-data/active-model-adapter/issues/45/events","html_url":"https://github.com/ember-data/active-model-adapter/issues/45","id":103174231,"number":45,"title":"AMA Errors Not Working","user":{"login":"nahtnam","id":3316360,"avatar_url":"https://avatars.githubusercontent.com/u/3316360?v=3","gravatar_id":"","url":"https://api.github.com/users/nahtnam","html_url":"https://github.com/nahtnam","followers_url":"https://api.github.com/users/nahtnam/followers","following_url":"https://api.github.com/users/nahtnam/following{/other_user}","gists_url":"https://api.github.com/users/nahtnam/gists{/gist_id}","starred_url":"https://api.github.com/users/nahtnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahtnam/subscriptions","organizations_url":"https://api.github.com/users/nahtnam/orgs","repos_url":"https://api.github.com/users/nahtnam/repos","events_url":"https://api.github.com/users/nahtnam/events{/privacy}","received_events_url":"https://api.github.com/users/nahtnam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-26T04:52:03Z","updated_at":"2015-10-07T05:06:36Z","closed_at":null,"body":"Hey!\r\n\r\nI followed the instructions given here: http://emberjs.com/api/data/classes/DS.Errors.html but it doesnt seem to work.\r\n\r\nMy API is returning JSON that looks like this:\r\n```json\r\n{\r\n    \"errors\": {\r\n        \"email\": [\"The email address is already being used.\"]\r\n    }\r\n}\r\n```\r\n\r\nand then in my template I put:\r\n```hbs\r\n{{#each model.errors.messages as |message|}}\r\n  <div class=\"error\">\r\n    {{message}}\r\n  </div>\r\n{{/each}}\r\n```\r\n\r\nThis is the code I am using to update the user:\r\n\r\n```js\r\nexport default Ember.Controller.extend({\r\n  actions: {\r\n    updateUser(model) {\r\n      this.set('loading', true);\r\n      model.get('content').save().then(()=> {\r\n        Materialize.toast('Your information has been updated.', 5000);\r\n      }).catch(() => {\r\n        Materialize.toast('There was a problem updating your information.', 5000);\r\n      }).finally(() => {\r\n        this.set('loading', false);\r\n      });\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nIts not working (no errors are showing up on the screen). I verified that im using AMA.\r\n\r\nAny ideas/suggestions?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/ember-data/active-model-adapter/issues/comments/146078483","html_url":"https://github.com/ember-data/active-model-adapter/issues/45#issuecomment-146078483","issue_url":"https://api.github.com/repos/ember-data/active-model-adapter/issues/45","id":146078483,"user":{"login":"nahtnam","id":3316360,"avatar_url":"https://avatars.githubusercontent.com/u/3316360?v=3","gravatar_id":"","url":"https://api.github.com/users/nahtnam","html_url":"https://github.com/nahtnam","followers_url":"https://api.github.com/users/nahtnam/followers","following_url":"https://api.github.com/users/nahtnam/following{/other_user}","gists_url":"https://api.github.com/users/nahtnam/gists{/gist_id}","starred_url":"https://api.github.com/users/nahtnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahtnam/subscriptions","organizations_url":"https://api.github.com/users/nahtnam/orgs","repos_url":"https://api.github.com/users/nahtnam/repos","events_url":"https://api.github.com/users/nahtnam/events{/privacy}","received_events_url":"https://api.github.com/users/nahtnam/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T05:06:36Z","updated_at":"2015-10-07T05:06:36Z","body":"The tests make use of only `.save()`. What about get/find/findAll? "}}