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 Adding New Data An HTML Form

Kepa Tairua
PLUS
Kepa Tairua
Courses Plus Student 4,404 Points

Error for Task 2, input type="text" but says it isn't.

Hi there, Task 2 has you adding a text input.

My code is failing. The error says I need to make the input type="text" but as you can see below, it is.

views/new.erb
<p>Please enter your name below.</p>

<form>
  <fieldset>
    <label for="signature">Name:</label>
    <input type="text" name="signature" id="signature" />
  </fieldset>
  <input type="submit" />
</form>

1 Answer

Seth Kroger
Seth Kroger
56,414 Points

The challenge step 2 is only asking for an input field, not a fieldset with a label and submit button. Just using the input will pass the challenge.

<form>
    <input type="text" name="signature" id="signature" />
</form>
Kepa Tairua
Kepa Tairua
Courses Plus Student 4,404 Points

I suppose I just have to be mindful that the acceptance criteria is rigid (which is a good thing), even when it seems open to interpretation (which it shouldn't be). Less is better.

Thanks, Seth.