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!
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

Aaron Pate
7,360 PointsCode 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

rayorke
27,709 PointsHi 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 %>

ecp
838 PointsHi 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
Best,
Elizabeth