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 trialBinary Soul
4,592 PointsBuild a Simple Ruby Application Step 2 Challenge 4 is bugged
Step 1 and step 4 are the same, what makes step 5 impossible to solve because it assumes that step 4 is "Add a div with the class='navbar-brand'" inside the inner-navbar div.
4 Answers
David Moore
13,916 PointsThey are wanting the navbar both opened and closed before you open the div for the container that holds the yield. You are then going to add the subsequent navbar-inner and container to it. The yield sits in its own div with a class of container. If you still need help I can post the markdown but I think that will get you where you need.
Binary Soul
4,592 PointsYes thank you, but it tells me BUMMER! all the time. In Challenge task 4 of 5 the task is:
Add a div with the class "container" inside of the navbar-inner div.
Which makes no sense at this point. But if i do, i come to task 5: Add an a tag with the class "brand" and the content "Treebook"
a ... "TAG"? A standalone-tag? This is not declaring for me. Trying to solv this is not possible to me, i always end up with: Bummer! There is no a tag in your navbar container.
at this state:
<!DOCTYPE html>
<html>
<head>
<title>Treebook</title>
<%= stylesheet_link_tag 'application' %>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<div class="brand">TREEBOK</div>
</div>
</div>
</div>
<div class="container">
<%= yield %>
</div>
</body>
</html>
David Moore
13,916 PointsI see where you are now and yep, I came to the same conclusion. At best, the test is extremely confusing, however in all likelihood you are correct and the challenge is broken.
ecp
838 PointsHi Binary Soul !
David Moore reached out to Treehouse Support the other day for assistance, and I was able to touch base with Jason regarding this Code Challenge. The task is a bit confusing, we apologize for that. We'll be updating the Code Challenge soon, but here is the correct answer:
<!DOCTYPE html>
<html>
<head>
<title>Treebook</title>
<%= stylesheet_link_tag 'application' %>
</head>
<body>
<div>
<div>
<div>
<a>Treebook</a>
</div>
</div>
</div>
<div>
<%= yield %>
</div>
</body>
</html>
Please email me at help@teamtreehouse.com if you need any help or have any questions.