I have a simple yield use case and for some unknown reason the default case is never shown:
In my super_admin layout I have:
<%= yield :body_id || \'s
You can use content_for?(:body_id), the code will be like.
content_for?(:body_id)
<%= content_for?(:body_id) ? yield(:body_id) : 'super_admin_main' %>