diff options
author | logylaps <logylaps@gmail.com> | 2010-05-04 02:25:55 -0700 |
---|---|---|
committer | logylaps <logylaps@gmail.com> | 2010-05-04 02:25:55 -0700 |
commit | 8770b8c955c599282fd3257e2f1a4deaed9230e8 (patch) | |
tree | fce04927a9dc1961baa839b6419bfd8e2aedf074 | |
parent | 387e16afa905eff2943a94d08a471d402404eb78 (diff) | |
download | rails-8770b8c955c599282fd3257e2f1a4deaed9230e8.tar.gz rails-8770b8c955c599282fd3257e2f1a4deaed9230e8.tar.bz2 rails-8770b8c955c599282fd3257e2f1a4deaed9230e8.zip |
typo. missing 'if'
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 1cfec1cf77..e18dbc9c42 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -802,7 +802,7 @@ will either assign an existing client object with the name "Ryan" to the client h3. Finding by SQL -If you'd like to use your own SQL to find records in a table you can use +find_by_sql+. The +find_by_sql+ method will return an array of objects even the underlying query returns just a single record. For example you could run this query: +If you'd like to use your own SQL to find records in a table you can use +find_by_sql+. The +find_by_sql+ method will return an array of objects even if the underlying query returns just a single record. For example you could run this query: <ruby> Client.find_by_sql("SELECT * FROM clients |