From 8770b8c955c599282fd3257e2f1a4deaed9230e8 Mon Sep 17 00:00:00 2001 From: logylaps Date: Tue, 4 May 2010 02:25:55 -0700 Subject: typo. missing 'if' --- railties/guides/source/active_record_querying.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides/source/active_record_querying.textile') 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: Client.find_by_sql("SELECT * FROM clients -- cgit v1.2.3