Permalink
Browse files

Fixed a slightly misleading equivalent SQL code on the 3.2 query inte…

…rface.
  • Loading branch information...
1 parent 69786d1 commit 9f7804215249fa725596fdbeb4aeba9abbc1f26f @swanandp swanandp committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_record_querying.textile
@@ -94,7 +94,7 @@ client = Client.find(10)
The SQL equivalent of the above is:
<sql>
-SELECT * FROM clients WHERE (clients.id = 10)
+SELECT * FROM clients WHERE (clients.id = 10) LIMIT 1
</sql>
<tt>Model.find(primary_key)</tt> will raise an +ActiveRecord::RecordNotFound+ exception if no matching record is found.

0 comments on commit 9f78042

Please sign in to comment.