While learning to implement an app using Ruby on Rails, when I try to display the target page, this screen appears: sweat_smile:
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:
This is a screenshot of the last repositioning of the view file in question. (There are both the right place and the wrong place.)
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:
Recommended Posts