回答編集履歴
1
誤字修正
answer
CHANGED
@@ -19,6 +19,6 @@
|
|
19
19
|
|
20
20
|
```ruby
|
21
21
|
def post_count_per_month(user_id, month)
|
22
|
-
Post.where(user_id:
|
22
|
+
Post.where(user_id: user_id, created_at: month...(month + 1.month)).count
|
23
23
|
end
|
24
24
|
```
|