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 trialChristopher Phillips
10,061 PointsError with code evaluation? Task 3 of 3
I'm stuck in this challenge. There are 3 very simple steps required to complete it.
First, require the sinatra library:
require 'sinatra'
Next, perform an HTTP get request where the path is /hello
get '/hello' do
end
At this point, I've passed task 2 which tells me I've entered the block correctly. The 3rd task is to return a string when the get request runs. My complete code is as follows
require 'sinatra'
get '/hello' do
"Hello, web!"
end
It errors out telling me "we couldn't find the block associated with your "get '/hello'" command. I have no idea why it's throwing an error. I'm using exactly the same syntax as provided in the previous videos. Any ideas?
1 Answer
Jay McGavren
Treehouse TeacherThere was an error with this challenge that we just fixed. Try again now. Your code should pass as-is. Sorry for the trouble!