質問編集履歴
1
コントローラー 追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -91,3 +91,59 @@
|
|
91
91
|
<% end %>
|
92
92
|
|
93
93
|
```
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
class GroupSiftsController < ApplicationController
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
def index
|
102
|
+
|
103
|
+
@group_sifts=GroupSift.all
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
def new
|
110
|
+
|
111
|
+
@group_sift=GroupSift.new
|
112
|
+
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
def create
|
118
|
+
|
119
|
+
GroupSift.create(group_sift_parameter)
|
120
|
+
|
121
|
+
redirect_to group_sifts_path
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
private
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
def group_sift_parameter
|
138
|
+
|
139
|
+
params.require(:group_sift).permit(:worktype, :start_time )
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
end
|
148
|
+
|
149
|
+
```
|