Skip to content

Commit

Permalink
Fixed a slightly misleading equivalent SQL code on the 3.2 query inte…
Browse files Browse the repository at this point in the history
…rface.
  • Loading branch information
swanandp committed Mar 5, 2012
1 parent 69786d1 commit 9f78042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/active_record_querying.textile
Expand Up @@ -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.
Expand Down

0 comments on commit 9f78042

Please sign in to comment.