質問編集履歴

1

情報の追記

2020/12/05 01:57

投稿

hurousyotoku500
hurousyotoku500

スコア27

test CHANGED
File without changes
test CHANGED
@@ -17,6 +17,8 @@
17
17
  @score = Score.where(user_id: current_user).distinct.pluck(:course, :user_id, :round_id, :created_at )
18
18
 
19
19
  @score_sum = Score.where(user_id: current_user).group(:round_id).sum(:hole_score)
20
+
21
+ @score_ave = Score.where(user_id: current_user).average(:hole_score)
20
22
 
21
23
  ```
22
24