回答編集履歴
1
追記
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
1. Array(というかEnumerable)のinjectを勉強してください
|
16
16
|
|
17
|
-
1. <% if Time.new.month == attendance_record.start_time.month %>で選ぶのではなく、where で 足すべきattendance を選び出す
|
17
|
+
1. <% if Time.new.month == attendance_record.start_time.month %>で選ぶのではなく、where で 足すべきattendance を選び出す。でcount
|
18
18
|
|
19
19
|
|
20
20
|
|