回答編集履歴

1

誤字修正

2016/10/11 15:51

投稿

cameluby
cameluby

スコア891

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: @user.id, created_at: month...(month + 1.month)).count
43
+ Post.where(user_id: user_id, created_at: month...(month + 1.month)).count
44
44
 
45
45
  end
46
46