Layout with yield usage?

Hi!

Im having this weird problem when the yield gets overwritten with the
last yield used… My application layout looks like this:

    <div id="left_sidebar">
        <%= render :partial => "shared/navigation" %>
    </div>

    <div id="main_content">
        <%= yield %>
    </div>

And the output becomes:

    <div id="left_sidebar">
        ### NAVIGATION CONTENT ###
    </div>

    <div id="main_content">
        ### NAVIGATION CONTENT ###    <-- i want this to be ###

MAIN CONTENT ###

Am I using layouts/partials incorrectly?

Use <%= yield :navigation %> in your layout instead of the
render :partial, and use content_for :navigation in your view(s).
Watch Railscast 8.

Also, have you checked to see whether your nav render is duplicated in
the view?

-eric