So I’m working on my first Ruby on Rails application and everything has gone pretty smoothly with some troubleshooting until now. I am able to launch
$ rails server and then when I navigate to http://localhost:3000/cars I get the error message
No template for interactive request
CarsController#index is missing a template for request formats: text/html
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.
I’ve tried some different things but nothing seems to resolve this. Any ideas?