diff options
author | Ryan Sandridge <ryan@sandridgelabs.com> | 2013-03-19 18:05:44 -0400 |
---|---|---|
committer | Ryan Sandridge <ryan@sandridgelabs.com> | 2013-03-19 18:05:44 -0400 |
commit | 5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011 (patch) | |
tree | 4050ce678b2a9a6d9d931a917f4cb976470e651c /guides/source | |
parent | 926357040b7c5e19efb3bd1b51338621577d0138 (diff) | |
download | rails-5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011.tar.gz rails-5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011.tar.bz2 rails-5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011.zip |
Update documentation for Where chained modifiers.
where.like and where.not_like were removed in 8d02afeaee, but the
guide was not updated.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_record_querying.md | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 3809cad7eb..fcdb342a03 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -505,19 +505,15 @@ This code will generate SQL like this: SELECT * FROM clients WHERE (clients.orders_count IN (1,3,5)) ``` -### NOT, LIKE, and NOT LIKE Conditions +### NOT Conditions -`NOT`, `LIKE`, and `NOT LIKE` SQL queries can be built by `where.not`, `where.like`, and `where.not_like` respectively. +`NOT` SQL queries can be built by `where.not`. ```ruby Post.where.not(author: author) - -Author.where.like(name: 'Nari%') - -Developer.where.not_like(name: 'Tenderl%') ``` -In other words, these sort of queries can be generated by calling `where` with no argument, then immediately chain with `not`, `like`, or `not_like` passing `where` conditions. +In other words, this query can be generated by calling `where` with no argument, then immediately chain with `not` passing `where` conditions. Ordering -------- |