Problem with render :layout with yield :something inside in Rails 2.2.2


I got something like this:

<%= yield %>
<%= yield :sidebar %>

<% render :layout => “inner_layout” do %>
should be rendered only once
<% end %>

After switching from Rails 2.1 to 2.2 the code above renders “should
be rendered only once” twice. If I add:
<% content_for :sidebar do %>
<% end %>

then everything is ok.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs