Tony Green

Joined

100 Experience
0 Lessons Completed
0 Questions Solved

Activity

By the way how do I mark this question as solved - I can't see anything to do that?

Thanks for you very kind offer of a video call although I have no idea what exactly GoRails Discord is as yet?

Yes it is a little worrying but I will keep an eye out for anomalies. The only thing I did differently as I am working in a windows environment using VS Code editor is I discovered that I could run a terminal within the editor rather than run a powershell command window outside of it. So that is what prompted me to shut everything down and start a fresh within VS Code. It also allows me to run side by side terminals so I can have one for the server start up and the other for any adhoc rails commands I need to run which is great and helps to see what is going on. Anyway as soon as I did this and refreshed the browser it worked??

UPDATE: I shut everything down and then restarted it all again and it is now working which is a shame as I will never know what was actually causing the problem!! Oh well onto the next problem I suppose :)

Thank you for your reply.
Unfortunately my index.html.erb file is located as stated above with no typos so I am really confused as to why I still get the error.

Noob Rails user here. Can't believe I progressed without any problem through all of Chris's install this and that stuff without any issues at all. Then when I added my first view I get the error: No template for interactive request!
I have checked and double checked everything but I can't locate any typos etc and the naming conventions are exactly as described by Chris. I have been through part 3 and part 4 at least 5 times this morning but to no avail I cannot get a view to render I always get exactly the same error?
I am using:
Ruby version 3.2.2.1
Rails version 7.0.4.3

This is the trace error message:
BlogPostsController#index is missing a template for request formats: text/html

If anyone can shed any light of what I could be doing wrong I would greatly appreciate the help.
Thanks in advance.