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
Scott Howell III
12,241 PointsHaving trouble with ERB Basics Code Challenge
I am doing the code correctly on this challenge and am not getting an error but the code challenger when hit check my work throws up a pop-up window to click again. Is anyone else having these problems?
9 Answers
Patrick Harrington
359 PointsWhat is the code you're entering? I was getting timeout issues on the "Check my Work" when I had an error—not the best way to find out that I had a wrong answer. ;) In my case, it was leaving the equals sign out of <%= %>
Scott Howell III
12,241 PointsHere is my code for the coding challenge.
<% @statuses.each do |status| %>
<td><%= Name: %></td>
<br />
<% end %>
Patrick Harrington
359 PointsYeap, if I remember correctly your second line should be:
<td><%= status.name %></td>
Scott Howell III
12,241 PointsThanks, even when I do the 'preview' it has a time out issue. Any thing else you can think of?
Patrick Harrington
359 PointsNot sure—I just started on Treehouse yesterday and am doing the Rails tutorials as well. I've just taken the timeouts as my only way of knowing that my Rails code had an error in it.
Scott Howell III
12,241 PointsThanks, Patrick. I figured it out and the timeouts finally stopped. If your looking to follow someone on twitter look me up @ScottH3KU. I'd love to follow you so if we need any help we can let each other know when we post something in the forum.
Lani Chin
4,190 PointsI'm running into the same problem as well. I entered the following:
<% @statuses.each do |status| %> <td><% = status.Name %></td> <br/> <% end %>
Patrick Harrington
359 PointsYea, there looks to be an issue with how Treehouse reports Ruby errors - it just times out.
From looking at it, you're missing the equals sign in your variable - so it should be:
<% @statuses.each do |status| %>
<%= status.name %>
<% end %>
Lani Chin
4,190 PointsPatrick, I entered it exactly as you've written it and I'm still getting "There is a problem processing your error. Please verify that your syntax is correct..."