Skip to content

Commit bbc59c1

Browse files
committed
grammar and tense fixes
1 parent f1e86bb commit bbc59c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ create a custom validator file.
248248

249249
* All custom validators should be moved to a shared gem.
250250
* Use named scopes freely.
251-
* When a named scope defined with a lambda and parameters, becomes too
251+
* When a named scope defined with a lambda and parameters becomes too
252252
complicated, it is preferable to make a class method instead which serves
253-
the same purpose of the named scope and returns and
253+
the same purpose of the named scope and returns an
254254
`ActiveRecord::Relation` object.
255255
* Beware of the behavior of the `update_attribute` method. It doesn't
256256
run the model validations (unlike `update_attributes`) and could easily corrupt the model state.
257257
* Use user-friendly URLs. Show some descriptive attribute of the model in the URL rather than its `id`.
258258
There is more than one way to achieve this:
259-
* Override the `to_param` method of the model. This method is used by Rails for constructing an URL to the object.
259+
* Override the `to_param` method of the model. This method is used by Rails for constructing a URL to the object.
260260
The default implementation returns the `id` of the record as a String. It could be overridden to include another
261261
human-readable attribute.
262262
@@ -268,7 +268,7 @@ There is more than one way to achieve this:
268268
end
269269
```
270270
In order to convert this to a URL-friendly value, `parameterize` should be called on the string. The `id` of the
271-
object needs to be at the beginning so that it could be found by the `find` method of ActiveRecord.
271+
object needs to be at the beginning so that it can be found by the `find` method of ActiveRecord.
272272
273273
* Use the `friendly_id` gem. It allows creation of human-readable URLs by using some descriptive attribute of the model instead of its `id`.
274274

0 commit comments

Comments
 (0)