Need help with Q.6, the Routing


#1

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.


#2

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.


#3

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


#4

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