aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorDaniel Lissner <dlissner@gmail.com>2013-09-25 10:39:40 -0500
committerDaniel Lissner <dlissner@gmail.com>2013-09-25 10:39:40 -0500
commit8e4166303b9b0fae92f68c100aeb1001f572810d (patch)
tree50bdc4b45dd9f64e1176f9ab643cbc1f7b214d3d /guides/source
parentf3982858359008ec8fe43b8fa2c75aad8788cd89 (diff)
downloadrails-8e4166303b9b0fae92f68c100aeb1001f572810d.tar.gz
rails-8e4166303b9b0fae92f68c100aeb1001f572810d.tar.bz2
rails-8e4166303b9b0fae92f68c100aeb1001f572810d.zip
[ci skip] Correct the explanation of the example for find_or_create_by when used with create_with in ActiveRecord Querying guide
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_record_querying.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 28013beeae..b7414efe7b 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -1358,7 +1358,7 @@ COMMIT
The new record might not be saved to the database; that depends on whether validations passed or not (just like `create`).
-Suppose we want to set the 'locked' attribute to true if we're
+Suppose we want to set the 'locked' attribute to false if we're
creating a new record, but we don't want to include it in the query. So
we want to find the client named "Andy", or if that client doesn't
exist, create a client named "Andy" which is not locked.