I want to do a conditional rendering at the layout level based on the actual template has defined content_for(:an__area), any idea how to get this done?
content_for(:an__area)
not really necessary to create a helper method:
<% if @content_for_sidebar %> <%= yield :sidebar %> <% end %>
then of course in your view:
<% content_for :sidebar do %> ... <% end %>
I use this all the time to conditionally go between a one column and two column layout