[RUBY] I got an error! * There is no interactive request template


While learning to implement an app using Ruby on Rails, when I try to display the target page, this screen appears: sweat_smile:

error1.png

The words "Controller" and "index" were flickering, so check the VS Code routing and the controller and view file descriptions! I called the Compare Active File With Clipboard </ font> tool on the command palette and compared the sample code, but I couldn't find any differences ...

When I was taking a screenshot of VSCode to ask the mentor, I noticed that the view file directory was wrong! Recreate the view file in the correct location, pray and click the refresh button on the page, and the load time will be long! When I was waiting thinking "This looks good!", I was able to display it safely: joy:


If the message "There is no template for ..." appears, should I check the location of the file? I learned a little.

This is a screenshot of the last repositioning of the view file in question. (There are both the right place and the wrong place.)

error2.png

What's wrong is the third line, the index.htnl.erb file wasn't in the tweets directory: sweat_smile: I made a mistake in such a rudimentary place ...

But well, I'm glad I could solve it myself: grin: And when it was displayed properly, it felt good: laughing: Ah, I thought it was good programming to get a sense of accomplishment in such a visible way: blush:


  • Because I have just started programming, I may misinterpret or describe it. If you have any questions, I would appreciate it if you could give me more advice and suggestions. Thank you for reading to the end!

Recommended Posts

I got an error! * There is no interactive request template
Can't I use RXTX? Is there an alternative?
[Mockito] 3.2.4 → 3.3.x, but I got an error (Iketenai)
I got an error when I ran rake routes.
How to deal with No template for interactive request
I got an error "undefined method` create'" in RSpec
When I bcrypt with node + docker, I got an error
There is no nil! However, "fatal error: unexpectedly found nil while unwrapping an Optional value"
I got an error when using nextInt, nextLine and substring.
I got the error "Calling brew cask install is disabled!"
I want to make the frame of the text box red when there is an input error
I got an error and couldn't push! !! [error: failed to push some refs to]
Is there no type in Ruby?
Initial value when there is no form object property in Spring request
gradle's mybatis-generator-plugin says there is no MapperAnnotationPlugin
I got an "ActionView :: Template :: Error: Permission denied" error in the test of 3.3.1 of Rails tutorial 6th edition, so I solved it.