teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

編集

2018/06/23 08:23

投稿

imaharu
imaharu

スコア32

title CHANGED
File without changes
body CHANGED
@@ -9,11 +9,26 @@
9
9
  ```
10
10
 
11
11
  ## エラー
12
+
12
13
  ```
13
14
  undefined method `render' for #<ActionDispatch::Routing::Mapper:0x00007ff06d4ac878>
14
15
  ```
15
16
 
16
17
 
18
+ redirectに変更した時
19
+
20
+ ```
21
+ No route matches [GET] "/todos"
22
+
23
+
24
+ Helper HTTP Verb Path Controller#Action
25
+ Path / Url
26
+ Path Match
27
+ GET / redirect(301, /todos)
28
+ ```
29
+
30
+
31
+
17
32
  普通はcontrollerを作成して、controllerからviewに返す方法はわかっているのですが、TDDでTODOリストを開発したく、controllerはviewの整形をした後に作成したいです
18
33
 
19
34
  よろしくお願いします