Browse files

Fix order syntax in find_by_sql example

  • Loading branch information...
1 parent b594492 commit 70588be101fd3bc6beecca08dc884823158968dc @gsaks123 gsaks123 committed Jan 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/
@@ -1455,7 +1455,7 @@ If you'd like to use your own SQL to find records in a table you can use `find_b
Client.find_by_sql("SELECT * FROM clients
INNER JOIN orders ON = orders.client_id
- ORDER clients.created_at desc")
+ ORDER BY clients.created_at desc")
`find_by_sql` provides you with a simple way of making custom calls to the database and retrieving instantiated objects.

0 comments on commit 70588be

Please sign in to comment.