From 61ea49e41d85b421779e74c6d39387a5ad2d3f6d Mon Sep 17 00:00:00 2001 From: Cole Merrick Date: Tue, 20 Dec 2016 11:03:58 -0800 Subject: [PATCH] update finding tagged objects in readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3bb9f8ea8..f62bf138e 100644 --- a/README.md +++ b/README.md @@ -206,13 +206,16 @@ end User.tagged_with("awesome").by_join_date User.tagged_with("awesome").by_join_date.paginate(:page => params[:page], :per_page => 20) -# Find users that matches all given tags: +# Find users tagged with all the given tags: +User.tagged_with(["awesome", "cool"]) + +# Find users tagged with all the given tags, but only the given tags: User.tagged_with(["awesome", "cool"], :match_all => true) # Find users with any of the specified tags: User.tagged_with(["awesome", "cool"], :any => true) -# Find users that has not been tagged with awesome or cool: +# Find users that have not been tagged with awesome or cool: User.tagged_with(["awesome", "cool"], :exclude => true) # Find users with any of the tags based on context: