回答編集履歴
1
誤字修正
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
def post_count_per_month(user_id, month)
|
42
42
|
|
43
|
-
Post.where(user_id:
|
43
|
+
Post.where(user_id: user_id, created_at: month...(month + 1.month)).count
|
44
44
|
|
45
45
|
end
|
46
46
|
|