Skip to content

Commit aeeff4f

Browse files
committed
Update _posts/2011-01-29-what-is-a-model.md
Updated a few couple typos.
1 parent e6bb9f4 commit aeeff4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2011-01-29-what-is-a-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Our model definition shall thus look like;
165165

166166
### Creating a new model
167167

168-
If we wish to create a new user on the server then we will instantiate a new UserModel and call `save`. If the `id` attribute of the model is `null`, Backbone.js will send of POST request to the server to the urlRoot.
168+
If we wish to create a new user on the server then we will instantiate a new UserModel and call `save`. If the `id` attribute of the model is `null`, Backbone.js will send a POST request to the urlRoot of the server.
169169

170170
{% highlight javascript %}
171171
var UserModel = Backbone.Model.extend({
@@ -219,7 +219,7 @@ If we instantiate a model with an `id`, Backbone.js will automatically perform a
219219

220220
### Updating a model
221221

222-
Now that we model that exist on the server we can perform an update using a PUT request.
222+
Now that we have a model that exist on the server we can perform an update using a PUT request.
223223
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)
224224

225225
{% highlight javascript %}

0 commit comments

Comments
 (0)