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


Code Challenge: ERB Basics

I'm having a problem with this challenge.

This is my code <% @statuses.each do |status| %> <%= status.name %> <br /> <% end %>

but it keeps saying Bummer! The names of each status aren't being printed out.

What am i doing wrong?

2 Answers

Hi Aaron!

Did you keep the text 'Name:' and the line-break HTML tag that was previously there? That could be the reason the submission is returning an error.

<% @statuses.each do |status| %>
    Name: <%= status.name %><br/>
<% end %>

Hi Aaron!

Give Rhys's tips a go on the Code Challenge, and if you're still having trouble email me a screenshot and a link to the Code Challenge at help@teamtreehouse.com :D