Rails portfolio project: App does not show on localhost when running locally

link to project: https://www.codecademy.com/courses/learn-rails/projects/learn-rails_portfolio

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

NOTE!
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:

pages_controller.rb

class PagesController < ApplicationController
def welcome
end
end

routes.rb

Rails.application.routes.draw do
root ‘pages#welcome’
end

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.