質問編集履歴

1

編集

2018/06/23 08:23

投稿

imaharu
imaharu

スコア32

test CHANGED
File without changes
test CHANGED
@@ -20,6 +20,8 @@
20
20
 
21
21
  ## エラー
22
22
 
23
+
24
+
23
25
  ```
24
26
 
25
27
  undefined method `render' for #<ActionDispatch::Routing::Mapper:0x00007ff06d4ac878>
@@ -30,6 +32,34 @@
30
32
 
31
33
 
32
34
 
35
+ redirectに変更した時
36
+
37
+
38
+
39
+ ```
40
+
41
+ No route matches [GET] "/todos"
42
+
43
+
44
+
45
+
46
+
47
+ Helper HTTP Verb Path Controller#Action
48
+
49
+ Path / Url
50
+
51
+ Path Match
52
+
53
+ GET / redirect(301, /todos)
54
+
55
+ ```
56
+
57
+
58
+
59
+
60
+
61
+
62
+
33
63
  普通はcontrollerを作成して、controllerからviewに返す方法はわかっているのですが、TDDでTODOリストを開発したく、controllerはviewの整形をした後に作成したいです
34
64
 
35
65