Browse files

Merge branch 'master' of https://github.com/git2samus/docrails into g…

…it2samus-master
  • Loading branch information...
2 parents dbf955c + 62d5bb2 commit b43842f6c005f0b07873eb8dc5443470bfc3fe58 @fxn fxn committed Dec 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_record_querying.textile
View
2 railties/guides/source/active_record_querying.textile
@@ -450,7 +450,7 @@ SQL uses the +HAVING+ clause to specify conditions on the +GROUP BY+ fields. You
For example:
<ruby>
-Order.group("date(created_at)".having("created_at > ?", 1.month.ago)
+Order.group("date(created_at)").having("created_at > ?", 1.month.ago)
</ruby>
The SQL that would be executed would be something like this:

0 comments on commit b43842f

Please sign in to comment.