From 5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011 Mon Sep 17 00:00:00 2001 From: Ryan Sandridge Date: Tue, 19 Mar 2013 18:05:44 -0400 Subject: Update documentation for Where chained modifiers. where.like and where.not_like were removed in 8d02afeaee, but the guide was not updated. --- guides/source/active_record_querying.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'guides/source') 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 -------- -- cgit v1.2.3