質問編集履歴
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -224,6 +224,8 @@
|
|
224
224
|
|
225
225
|
```
|
226
226
|
|
227
|
+
### form(html)
|
228
|
+
|
227
229
|
```html
|
228
230
|
|
229
231
|
**posts/new.html**
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
###
|
33
|
+
### コントローラー
|
34
34
|
|
35
35
|
```
|
36
36
|
|
@@ -176,11 +176,11 @@
|
|
176
176
|
|
177
177
|
```
|
178
178
|
|
179
|
-
|
179
|
+
### Modelの記載
|
180
|
+
|
180
|
-
|
181
|
+
######親:Post.rb
|
182
|
+
|
181
|
-
```
|
183
|
+
```
|
182
|
-
|
183
|
-
**post.rb**
|
184
184
|
|
185
185
|
class Post < ApplicationRecord
|
186
186
|
|
@@ -212,9 +212,9 @@
|
|
212
212
|
|
213
213
|
```
|
214
214
|
|
215
|
+
######子:Item.rb
|
216
|
+
|
215
|
-
```
|
217
|
+
```
|
216
|
-
|
217
|
-
**item.rb**
|
218
218
|
|
219
219
|
class Item < ApplicationRecord
|
220
220
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,12 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
導入済み
|
24
|
+
|
25
|
+
・gem cocoon
|
26
|
+
|
27
|
+
|
28
|
+
|
23
29
|
|
24
30
|
|
25
31
|
|