0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Missing :controller key on routes definition, please check your routes. 即解決できた。(自分用)

Posted at

dockerを使いrailsのdeviseを入れている時のエラー。

$ docker-compose exec web rails g devise User

Missing :controller key on routes definition, please check your routes.
とエラーメッセージ表示された。

routes.rb内では

Rails.application.routes.draw do
devise_for :users
root 'pages/index' ⇦ ⭕️ root 'pages#index' これで解決した。
get 'pages/index'
get 'pages/show'

Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

Defines the root path route ("/")

root "articles#index"

end

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?