Skip to content

Instantly share code, notes, and snippets.

@brendensoares
Created October 3, 2011 23:32
Show Gist options
  • Save brendensoares/1260539 to your computer and use it in GitHub Desktop.
Save brendensoares/1260539 to your computer and use it in GitHub Desktop.
mongodb id and backbone js
@journals.to_json
is returning data in this format:
{"_id":"4e7b7ccf9ad5283fb2000002","description":"iut was awesome!","title":"I bought a motorcycle"}
Backbone is looking for object.id but we only have object._id so the code is broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment