Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo

  • Loading branch information...
commit b4b6ffe1149a86794219fe9a978714d0cd67b953 1 parent d2003a2
Michael Cetrulo git2samus authored fxn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/active_record_querying.textile
2  railties/guides/source/active_record_querying.textile
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.