0
0

More than 3 years have passed since last update.

No template for interactive request IdeasController#index is missing a template for request formats: text/htmlというエラーが出た

Last updated at Posted at 2021-01-25

rails s を行ったら以下のエラーが発生

No template for interactive request
IdeasController#index is missing a template for request formats: text/html

NOTE!
Unless told otherwise, Rails expects an action to render a template with the same name,
contained in a folder named after its controller. If this controller is an API responding with 204 (No Content),
which does not require a template, then this error will occur when trying to access it via browser,
since we expect an HTML template to be rendered for such requests. If that's the case, carry on.

対処法

view以下のideasディレクトリの名前がいつの間にか(自分がいじっていたみたい、、)変わっていたのでideasに変更したら解決しました。
Ideasコントローラーに対応するビューがないという意味のようです。

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