Hi - I want to detect if content was provided for content_for tag in my template, and if not fall back to default value:
<title>
<% if content_is_provided -%>
<%= yield :title -%>
<% else -%>
404 - Page Unknown
<% end -%>
</title>
Any easy way to detect this? I tried <% if :title -%>
but that didn't do much. thanks.