{"action":"opened","issue":{"url":"https://api.github.com/repos/LRDesign/relayer/issues/16","labels_url":"https://api.github.com/repos/LRDesign/relayer/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/LRDesign/relayer/issues/16/comments","events_url":"https://api.github.com/repos/LRDesign/relayer/issues/16/events","html_url":"https://github.com/LRDesign/relayer/issues/16","id":109320333,"number":16,"title":"Updating / saving resources","user":{"login":"IdahoEv","id":440321,"avatar_url":"https://avatars.githubusercontent.com/u/440321?v=3","gravatar_id":"","url":"https://api.github.com/users/IdahoEv","html_url":"https://github.com/IdahoEv","followers_url":"https://api.github.com/users/IdahoEv/followers","following_url":"https://api.github.com/users/IdahoEv/following{/other_user}","gists_url":"https://api.github.com/users/IdahoEv/gists{/gist_id}","starred_url":"https://api.github.com/users/IdahoEv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IdahoEv/subscriptions","organizations_url":"https://api.github.com/users/IdahoEv/orgs","repos_url":"https://api.github.com/users/IdahoEv/repos","events_url":"https://api.github.com/users/IdahoEv/events{/privacy}","received_events_url":"https://api.github.com/users/IdahoEv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T15:11:10Z","updated_at":"2015-10-01T15:11:10Z","closed_at":null,"body":"A couple things I'm unable to find docco on this morning:\r\n\r\n1) When looking at a resource, how can I tell if it's a newly created one, or one that has been previously persisted on the backend?\r\n\r\n2) How do I save an updated resource?  The only up-to-date example code I have is for saving newly created resources with <resource>.create() as follows:\r\n\r\n    save(user) {\r\n      user.confirmationLink = this.$state.href('root.inner.passwordsUpdate', {}, {absolute: true});\r\n      this.users.create(user).then((user) => {\r\n        this.$state.go('root.admin.users.index');\r\n      },\r\n      (resp) => {\r\n        return this.$lrdToast.error(resp.errors);\r\n      });\r\n    }"}}