Skip to content

Commit

Permalink
Error callback for UserModal.save()
Browse files Browse the repository at this point in the history
  • Loading branch information
livash committed May 31, 2015
1 parent a89e976 commit 90db853
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _posts/2011-01-29-what-is-a-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ We will use the `save` api call which is intelligent and will send a PUT request
user.save({name: 'Davis'}, {
success: function (model) {
alert(user.toJSON());
},
error: function () {
alert('Oops, could not save the user ' + user.toJSON());
}
});

Expand Down

0 comments on commit 90db853

Please sign in to comment.