diff options
author | Thomas Davis <thomasalwyndavis@gmail.com> | 2014-12-31 17:42:38 +1000 |
---|---|---|
committer | Thomas Davis <thomasalwyndavis@gmail.com> | 2014-12-31 17:42:38 +1000 |
commit | c7c1cf716166d963de8585dfd6c0dac54f31a1cd (patch) | |
tree | bff767afca9001f8b9f74818103d24ae4f8c0a5d | |
parent | 8bde8aa62fb40668d02219c45b7cd00e8688f88a (diff) | |
parent | c5af63680c8a60b37f0b16e86637a7fa5c64ebcb (diff) | |
download | backbonetutorials-c7c1cf716166d963de8585dfd6c0dac54f31a1cd.zip backbonetutorials-c7c1cf716166d963de8585dfd6c0dac54f31a1cd.tar.gz backbonetutorials-c7c1cf716166d963de8585dfd6c0dac54f31a1cd.tar.bz2 |
Merge pull request #123 from ClimbsRocks/patch-1
Fixed a typo where "exist" should be "exists"
-rw-r--r-- | _posts/2011-01-29-what-is-a-model.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_posts/2011-01-29-what-is-a-model.md b/_posts/2011-01-29-what-is-a-model.md index d75aed7..e2e9efb 100644 --- a/_posts/2011-01-29-what-is-a-model.md +++ b/_posts/2011-01-29-what-is-a-model.md @@ -219,7 +219,7 @@ If we instantiate a model with an `id`, Backbone.js will automatically perform a ### Updating a model -Now that we have a model that exist on the server we can perform an update using a PUT request. +Now that we have a model that exists on the server we can perform an update using a PUT request. We will use the `save` api call which is intelligent and will send a PUT request instead of a POST request if an `id` is present(conforming to RESTful conventions) {% highlight javascript %} @@ -245,7 +245,7 @@ We will use the `save` api call which is intelligent and will send a PUT request ### Deleting a model -When a model has an `id` we know that it exist on the server, so if we wish to remove it from the server we can call `destroy`. `destroy` will fire off a DELETE /user/id (conforming to RESTful conventions). +When a model has an `id` we know that it exists on the server, so if we wish to remove it from the server we can call `destroy`. `destroy` will fire off a DELETE /user/id (conforming to RESTful conventions). {% highlight javascript %} |