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 Root Path

Kian Chakamian
Kian Chakamian
15,410 Points

I am struggling to complete part two of the challenge.

I fully understand the concept and I use HTML a lot, but for some reason, this challenge keeps saying I'm doing something wrong.

require "sinatra"

get "/" do

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing great, but you have a misplacement of your quotation marks. The quotation marks should be on the outside of the h1 elements as well, because the h1 is being written to the DOM. Because they are misplaced, Ruby believes h1 to be a variable of some sort. Take a look:


Hope this helps! :sparkles:

Kian Chakamian
Kian Chakamian
15,410 Points

Thank you so much for your help, Jennifer!