aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_querying.md
diff options
context:
space:
mode:
authorRyan Sandridge <ryan@sandridgelabs.com>2013-03-19 18:05:44 -0400
committerRyan Sandridge <ryan@sandridgelabs.com>2013-03-19 18:05:44 -0400
commit5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011 (patch)
tree4050ce678b2a9a6d9d931a917f4cb976470e651c /guides/source/active_record_querying.md
parent926357040b7c5e19efb3bd1b51338621577d0138 (diff)
downloadrails-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/active_record_querying.md')
-rw-r--r--guides/source/active_record_querying.md10
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
--------