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)
@content_for_whatever is deprecated. Use content_for? instead, like this:
@content_for_whatever
content_for?
<% if content_for?(:whatever) %> <%= yield(:whatever) %> <% end %>