aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/README
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/README')
-rwxr-xr-xactiverecord/README2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/README b/activerecord/README
index 1be4df6189..265d8cc61e 100755
--- a/activerecord/README
+++ b/activerecord/README
@@ -264,7 +264,7 @@ Lots of different finders
next_angle = Firm.find(1)
# SQL: SELECT * FROM companies WHERE id = 1 AND name = 'Next Angle'
- next_angle = Company.find_first "name = 'Next Angle'"
+ next_angle = Company.find(:first, :conditions => "name = 'Next Angle'")
next_angle = Firm.find_by_sql("SELECT * FROM companies WHERE id = 1").first