{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-exercises/project3/issues/374","repository_url":"https://api.github.com/repos/ga-wdi-exercises/project3","labels_url":"https://api.github.com/repos/ga-wdi-exercises/project3/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/project3/issues/374/comments","events_url":"https://api.github.com/repos/ga-wdi-exercises/project3/issues/374/events","html_url":"https://github.com/ga-wdi-exercises/project3/issues/374","id":194115861,"number":374,"title":"Put request not completing on backend","user":{"login":"drewswinburne","id":21972670,"avatar_url":"https://avatars.githubusercontent.com/u/21972670?v=3","gravatar_id":"","url":"https://api.github.com/users/drewswinburne","html_url":"https://github.com/drewswinburne","followers_url":"https://api.github.com/users/drewswinburne/followers","following_url":"https://api.github.com/users/drewswinburne/following{/other_user}","gists_url":"https://api.github.com/users/drewswinburne/gists{/gist_id}","starred_url":"https://api.github.com/users/drewswinburne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewswinburne/subscriptions","organizations_url":"https://api.github.com/users/drewswinburne/orgs","repos_url":"https://api.github.com/users/drewswinburne/repos","events_url":"https://api.github.com/users/drewswinburne/events{/privacy}","received_events_url":"https://api.github.com/users/drewswinburne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T17:37:14Z","updated_at":"2016-12-07T17:49:55Z","closed_at":null,"body":"I think I'm close here.  I'm getting the 'photo' from the Photo factory, then updating it with the info passed through the form. \r\n\r\n```javascript\r\nthis.update = function(photo){\r\n      let photoToEdit = Photo.get({id: photo.id})\r\n      photoToEdit.$promise.then(() => {\r\n        photoToEdit.$update({id: photo.id, photoUrl: photo.photoUrl, color: photo.color, year: photo.year}).then(function(){\r\n          console.log(photoToEdit);\r\n        })\r\n        })\r\n      }\r\n```\r\n\r\nand rails even starts the put request with the updated info:\r\n\r\n<img width=\"713\" alt=\"screen shot 2016-12-07 at 12 17 14 pm\" src=\"https://cloud.githubusercontent.com/assets/21972670/20978986/f1f9dbde-bc78-11e6-95db-4dbef7a012c9.png\">\r\n\r\nbut for whatever reason it is not updating the database, nor is it giving me any errors. Is there something wrong with my $update syntax? Works fine with postman, so I assume something's up on the Angular side\r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/ga-wdi-exercises/project3/issues/comments/265519268","html_url":"https://github.com/ga-wdi-exercises/project3/issues/374#issuecomment-265519268","issue_url":"https://api.github.com/repos/ga-wdi-exercises/project3/issues/374","id":265519268,"user":{"login":"superbuggy","id":17716232,"avatar_url":"https://avatars.githubusercontent.com/u/17716232?v=3","gravatar_id":"","url":"https://api.github.com/users/superbuggy","html_url":"https://github.com/superbuggy","followers_url":"https://api.github.com/users/superbuggy/followers","following_url":"https://api.github.com/users/superbuggy/following{/other_user}","gists_url":"https://api.github.com/users/superbuggy/gists{/gist_id}","starred_url":"https://api.github.com/users/superbuggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superbuggy/subscriptions","organizations_url":"https://api.github.com/users/superbuggy/orgs","repos_url":"https://api.github.com/users/superbuggy/repos","events_url":"https://api.github.com/users/superbuggy/events{/privacy}","received_events_url":"https://api.github.com/users/superbuggy/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T17:49:55Z","updated_at":"2016-12-07T17:49:55Z","body":"do you ever see the output of the console.log in your `$update` callback?"}}
{"actor":{"display_login":"superbuggy"}}