Project: broadway; Q 9/10


#1

https://www.codecademy.com/courses/learn-rails/projects/learn-rails_broadway

If I replace the 'get "home" => "pages#home" with root "pages#home" it doesn't works
, why?


#2

Hi @arcjumper93165,

Thanks for including the link!

it doesn't works, why?

That's very vague, could you please be a bit more specific about what you're seeing?


#3

I get a routing error
'No route matches [GET] "/pages/home"'


#4


#5

root :to => "pages#home"
But still brings not the result which I want. still an error


#6

Wrote new 'root :to => "pages#home"'


#7

@arcjumper93165 That error is OK since you removed the route for that. Does everything work if you visit localhost:8000 (without anything at the end)?


#8

I had the same problem. You need to remove "/pages/home" from this pseudo-browser, as in this step you've deleted it (or its path? - i don't know :wink: )


#9

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