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

Ruby

Erased top yellow element where alert messages are placed.

I previously erased the top yellow element where the alert messages appear. So now that I've added the correct codes for the alert, notice etc. messsages the color with the alert message takes up the entire div including my name and all the statuses. I know I need to add that yellow bar but I just can't remember where it was placed.

2 Answers

Sounds like you are missing a closing </div> tag. Here's the standard code for flash messages in application.html.erb

<% flash.each do |type, message| %>
        <div class="alert <%= flash_class type %>">
            <button class="close" data-dismiss="alert">x</button>
            <%= message %>
        </div>
    <% end %>

I was in fact missing that div closing tag. Thanks for the help Brandon!