Need help with Q.6, the Routing

My code in routs:

Rails.application.routes.draw do
get ‘/pages/home’ => ‘pages#home’

My code in Controller:

class PagesController < ApplicationController
def home
end
end

Always get ‘Not Found’ When I try to access the page.

Hi Peter,

Could you please show a screenshot of the browser window, as well as the URL you’re entering into Codecademy’s virtual browser?

You’ll need to save and run your code again, if you haven’t already.

Hey, sorry, I figured it out, I left the computer for a while, came back, and had to restart my terminal (so I didnt change my directory to broadway before starting the server XD) so its all good

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.