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

General Discussion

Steve Monsen
Steve Monsen
5,207 Points

Problem with Layouts code challenge

Build a Simple Ruby on Rails Application > Frontend Development > Layouts

Task 1 works

"Add a div with the class "container" around the yield call in this layout."

<div class="container">
        <%= yield %>
    </div>

Task 2 throws error: "Oops! It looks like Task 1 is no longer passing."

"Add a div with the class "navbar" before the container div."

<div class="navbar">
    <div class="container">
        <%= yield %>
    </div>
</div>

3 Answers

Dan Ridley
PLUS
Dan Ridley
Courses Plus Student 14,839 Points

Hey Steve,

I am sorry you have having a problem. I will tag people that will definitely be able to help us out solving your problem.

Could you help us out Jason Seifer or Elizabeth Fawkes

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Steve Monsen you're pretty close! Double check the language that the code challenge is asking for (hint: before versus _surrounding) :)

Steve Monsen
Steve Monsen
5,207 Points

Oooooooh! Hahahaha. Ok. Thanks, Jason. :) Got it. I must have been getting tired last night. (Why would I be wrapping a navigation div around a whole body container div, anyway? The logic part of my brain must have shut down last night. hahaha.)