回答編集履歴
2
if文修正
test
CHANGED
@@ -18,9 +18,9 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
@timecard.start_time = Time.now if params[:start_btn]
|
21
|
+
@timecard.start_time = Time.now if params[:start_btn]
|
22
22
|
|
23
|
-
@timecard.end_time = Time.now if params[:end_btn]
|
23
|
+
@timecard.end_time = Time.now if params[:end_btn]
|
24
24
|
|
25
25
|
|
26
26
|
|
1
name修正
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
= form_with(url:"/worktimes", local: true, class: "btn_frame") do |f|
|
4
4
|
|
5
|
-
=f.submit "出勤", name: "start
|
5
|
+
=f.submit "出勤", name: "start_btn"
|
6
6
|
|
7
|
-
=f.submit "退勤", name: "end
|
7
|
+
=f.submit "退勤", name: "end_btn"
|
8
8
|
|
9
9
|
```
|
10
10
|
|