Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Building Web Apps with Sinatra ERB Templates Root Path

Christopher Phillips
Christopher Phillips
10,061 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
end

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
STAFF
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!