diff options
author | Xavier Noria <fxn@hashref.com> | 2009-02-16 08:47:43 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-02-16 08:47:43 +0100 |
commit | 6408308aab958841dcba6001a9f8abf52fb20009 (patch) | |
tree | f7b7edcdd4e8fc7c6e08fe853cffd72e51d21f58 /railties/guides | |
parent | bc1c856b2188d774f8f824c41b72735ec3842386 (diff) | |
download | rails-6408308aab958841dcba6001a9f8abf52fb20009.tar.gz rails-6408308aab958841dcba6001a9f8abf52fb20009.tar.bz2 rails-6408308aab958841dcba6001a9f8abf52fb20009.zip |
fixed example, closes LH ticket #59
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index fa66627ece..7d4d4083fd 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -321,13 +321,13 @@ h5. Subset conditions If you want to find records using the +IN+ expression you can pass an array to the conditions hash: <ruby> -Client.all(:include => "orders", :conditions => { :orders_count => [1,3,5] } +Client.all(:conditions => { :orders_count => [1,3,5] }) </ruby> This code will generate SQL like this: <sql> -SELECT * FROM clients WHERE (clients.orders_count IN (1,2,3)) +SELECT * FROM clients WHERE (clients.orders_count IN (1,3,5)) </sql> h3. Find options |