Ruby Building Web Apps with Sinatra ERB Templates URL Parameters

Dont understand what i need to do in this challenge

Answer: "Hello" page_content(params[:name])

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

The result of the block needs to be the string you want to respond with. So:

get "/greet/:name" do
  "Hello"
end

...would respond with "Hello". But you also need the value of params[:name]. So if you make "Hello #{params[:name]}" the result of the block, it should pass.