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
Jay McGavren
Treehouse Teacher

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

get "/greet/:name" do

...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.