This is the error I get when I go to http://localhost:3000 on my browser:
PagesController#welcome 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.
Here is my directory:
class PagesController < ApplicationController
Why am I getting that error? The files seem to be in the right place and are html.erb … when I run the app on the site it works fine.