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

質問編集履歴

2

ルーティングの記述修正

2020/10/21 08:46

投稿

ami09
ami09

スコア0

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実行結果を追記

2020/10/21 08:46

投稿

ami09
ami09

スコア0

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
+ ![イメージ説明](f94e60715da24abeea76d402c5dd1305.png)
20
22
 
21
23
  ###見直した点
22
24
  routes.rbのdevise_for :usersの位置は以下の通り