szimek
2009-Jan-16 11:12 UTC
Problem with render :layout with yield :something inside in Rails 2.2.2
Hi, I got something like this: _inner_layout.erb.html <%= yield %> <%= yield :sidebar %> index.erb.html <% 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---