Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2014 01:33
What would you like to do?
Chaining ember promises in coffeescript
addProblem: (disease) ->"medicalRecord",2)
.then (mr) =>
.then (problems) =>
o = @store.createRecord("problem", {disease: disease, medicalRecord: mr})
.then (p) -> ->
console.log "Problem was saved correctly!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment