Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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