質問編集履歴
2
ルーティングの記述修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
```
|
26
26
|
Rails.application.routes.draw do
|
27
27
|
devise_for :users
|
28
|
-
root 'top#index'
|
28
|
+
root to: 'top#index'
|
29
29
|
resources :list
|
30
30
|
```
|
31
31
|
|
1
rails routes実行結果を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
rails g migration AddNameToUser name:stringでnameカラム追加
|
18
18
|
→rails sの上、localhost:3000を確認するもRouting Error
|
19
19
|
(ターミナルでコマンド実行後、ログが問題ないことを確認)
|
20
|
+
rails routesの実行結果
|
21
|
+

|
20
22
|
|
21
23
|
###見直した点
|
22
24
|
routes.rbのdevise_for :usersの位置は以下の通り
|