{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/project4/issues/68","labels_url":"https://api.github.com/repos/ga-dc/project4/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/project4/issues/68/comments","events_url":"https://api.github.com/repos/ga-dc/project4/issues/68/events","html_url":"https://github.com/ga-dc/project4/issues/68","id":125680139,"number":68,"title":"Two Way Data Binding in a Rails Backbone App","user":{"login":"noonkay","id":10967619,"avatar_url":"https://avatars.githubusercontent.com/u/10967619?v=3","gravatar_id":"","url":"https://api.github.com/users/noonkay","html_url":"https://github.com/noonkay","followers_url":"https://api.github.com/users/noonkay/followers","following_url":"https://api.github.com/users/noonkay/following{/other_user}","gists_url":"https://api.github.com/users/noonkay/gists{/gist_id}","starred_url":"https://api.github.com/users/noonkay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noonkay/subscriptions","organizations_url":"https://api.github.com/users/noonkay/orgs","repos_url":"https://api.github.com/users/noonkay/repos","events_url":"https://api.github.com/users/noonkay/events{/privacy}","received_events_url":"https://api.github.com/users/noonkay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-08T19:46:24Z","updated_at":"2016-01-08T20:00:38Z","closed_at":null,"body":"Alexis and I are working on a side project that makes an API call from the back end using form data submitted by the user. The object is created in the data base upon the completion of the API call but is not rendered on the page until a refresh even though there are model event listeners for collections. \r\n\r\nWe have tried updating the collection in Backbone in the promise of the $.post but that automatically makes a PUT request on the model that was just created. \r\n\r\nThe only solution we have had is to call on the index function of our router which fetches the models from our API but we aren't sure if that is the right way to do it. \r\n\r\nIs there a way to trigger the fetch function when there are changes/additions made to the database from the backend? Can we talk to someone about two way data binding in a situation like this?\r\n\r\nThanks,\r\nNegar & Alexis"},"comment":{"url":"https://api.github.com/repos/ga-dc/project4/issues/comments/170107908","html_url":"https://github.com/ga-dc/project4/issues/68#issuecomment-170107908","issue_url":"https://api.github.com/repos/ga-dc/project4/issues/68","id":170107908,"user":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T20:00:38Z","updated_at":"2016-01-08T20:00:38Z","body":"Also, shouldn't you be using `.save`?\r\n\r\nhttps://github.com/ga-dc/curriculum/tree/master/11-multi-track/bb_models_collections#models"}}