diff options
author | Konstantinos Rousis <rousisk@gmail.com> | 2015-02-21 14:58:59 +0100 |
---|---|---|
committer | Konstantinos Rousis <rousisk@gmail.com> | 2015-02-21 16:44:05 +0100 |
commit | 793ff7585b2292c7fa6d0e6acc44c8e2c06a47a0 (patch) | |
tree | 19ee6173d380ca96ff4f09dda1c2deebaf79b4d8 | |
parent | 56e788edb38b402c9b081a05f63ed327fbc82254 (diff) | |
download | rails-793ff7585b2292c7fa6d0e6acc44c8e2c06a47a0.tar.gz rails-793ff7585b2292c7fa6d0e6acc44c8e2c06a47a0.tar.bz2 rails-793ff7585b2292c7fa6d0e6acc44c8e2c06a47a0.zip |
Improve wording on find_by note regarding returning only one record [ci skip]
-rw-r--r-- | guides/source/active_record_querying.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index ad5103da69..e5a962b739 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1403,8 +1403,9 @@ WHERE people.name = 'John' LIMIT 1 ``` -NOTE: Remember that, if `find_by` returns more than one registry, it will take -just the first and ignore the others. Note the `LIMIT 1` statement above. +NOTE: Note that if a query matches multiple records, `find_by` will +fetch only the first one and ignore the others (see the `LIMIT 1` +statement above). Find or Build a New Object -------------------------- |