Browse files

Reword the section about exists?

  • Loading branch information...
lifo committed Aug 30, 2010
1 parent ceca3a0 commit d0720ad5f8c49fdca103babf5f3d9df1aaae3af2
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/guides/source/active_record_querying.textile
@@ -838,13 +838,13 @@ Client.exists?(1,2,3)
-The +exists+ method may also take a +conditions+ option much like find:
+It's even possible to use +exists?+ without any arguments on a model or a relation.
-Client.exists?(:conditions => "first_name = 'Ryan'")
+Client.where(:first_name => 'Ryan').exists?
-It's even possible to use +exists?+ without any arguments:
+The above returns +true+ if there is at least one client with the +first_name+ 'Ryan' and +false+ otherwise.

0 comments on commit d0720ad

Please sign in to comment.