Ruby Building Web Apps with Sinatra ERB Templates Root Path

Christopher Phillips
Christopher Phillips
10,051 Points

What is going on??

I need to create a get request assuming the path is at the root.

My code:

require "sinatra"
get "/" do

It returns an error saying that my route needs to include a single "/" in my command... That's exactly what I'm looking at. This is the second time I'm getting an error with these challenge tasks when it seems I'm typing the correct answer.

fyi, I've typed the same thing locally and I'm able to load it no problem on localhost:4567. There must be something wrong with the expectations of this task challenge.

1 Answer

Jay McGavren
Jay McGavren
Treehouse Teacher

There was an error with this challenge that we just fixed. Try again now. Your code should pass as-is.

In the future, if you suspect an issue with the code challenge itself, please let us know! You can click the "Support" link at the top of any page to contact Treehouse Support. They will notify the appropriate teacher.

Sorry for the trouble!