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 URL Parameters

Caroline Wainaina
Caroline Wainaina
3,673 Points

In the get route for the "/greet/:name" path, respond with a string reading "Hello" followed by the contents of the name

I don't know what I am missing.

hello.rb
require "sinatra"

get "/greet/:name" do
  "Hello" + params[:name]
end
Adriana Cabrera
Adriana Cabrera
14,618 Points

This is what works for me "Hello " + params[:name]

1 Answer

Caroline Wainaina
Caroline Wainaina
3,673 Points

I figured it out and edited above