Ruby Building Web Apps with Sinatra ERB Templates Root Path

Can't seem to find the error here

Can't get passed this error

require "sinatra"

set :bind, ""

get "/" do
  "<h1> "Welcome!" </h1>"
Jeremy Hill
Jeremy Hill
20,424 Points

Try removing the quotes from the outside of your <h1> tags. I haven’t done Sinatra in a long time so I’m not real familiar with the syntax.

1 Answer

Jay McGavren
Jay McGavren
Treehouse Teacher

Ruby interprets "<h1> "Welcome!" </h1>" as two strings, "<h1> " and " </h1>", surrounding a reference to a nonexistent constant named Welcome and a ! operator.

Did you mean "<h1> \"Welcome!\" </h1>"?