diff options
author | Xavier Noria <fxn@hashref.com> | 2010-12-10 23:53:13 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-12-10 23:53:13 +0100 |
commit | b43842f6c005f0b07873eb8dc5443470bfc3fe58 (patch) | |
tree | f0e6a5df1bacd088868c9b8ffb28dfc80f223ca6 /railties/guides/source | |
parent | dbf955c03b8d185b7977d90281389cf52d546c5d (diff) | |
parent | 62d5bb26864f3139354b677fbf9cd9c5b13962b1 (diff) | |
download | rails-b43842f6c005f0b07873eb8dc5443470bfc3fe58.tar.gz rails-b43842f6c005f0b07873eb8dc5443470bfc3fe58.tar.bz2 rails-b43842f6c005f0b07873eb8dc5443470bfc3fe58.zip |
Merge branch 'master' of https://github.com/git2samus/docrails into git2samus-master
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index e41b5fb606..b9ad7ccbd2 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/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: |