質問編集履歴
2
エラーメッセージの表示
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,22 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
エラーメッセージ
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
Routing Error
|
28
|
+
|
29
|
+
No route matches [GET] "/items/ItemOrder/order"
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```
|
34
|
+
|
19
35
|
```
|
20
36
|
|
21
37
|
order/index
|
1
コードの書き直し
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,11 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
```
|
20
|
+
|
19
|
-
|
21
|
+
order/index
|
22
|
+
|
23
|
+
|
20
24
|
|
21
25
|
<div class='buy-btn'>
|
22
26
|
|
@@ -32,7 +36,11 @@
|
|
32
36
|
|
33
37
|
|
34
38
|
|
39
|
+
```
|
40
|
+
|
35
|
-
|
41
|
+
order.controller
|
42
|
+
|
43
|
+
|
36
44
|
|
37
45
|
class OrdersController < ApplicationController
|
38
46
|
|
@@ -212,7 +220,11 @@
|
|
212
220
|
|
213
221
|
|
214
222
|
|
223
|
+
```
|
224
|
+
|
215
|
-
|
225
|
+
routes.rb
|
226
|
+
|
227
|
+
|
216
228
|
|
217
229
|
Rails.application.routes.draw do
|
218
230
|
|
@@ -262,7 +274,11 @@
|
|
262
274
|
|
263
275
|
|
264
276
|
|
277
|
+
```
|
278
|
+
|
265
|
-
|
279
|
+
order.model
|
280
|
+
|
281
|
+
|
266
282
|
|
267
283
|
class Order < ApplicationRecord
|
268
284
|
|