Throw default text when yield doesn't render anything ?

hello,

I'm wondering if there's a way to do something like : <%= yield :catchphrase || "default text" %> ?

Thanks.

<%= yield(:catchphrase) || "default text" %> works, sorry.

About time someone deprecate <%= @content_for_foo %> too. You should go
<%= yield(:foo) %> instead, and do <% if yield(:foo) %> (or perhaps
unless yield(:foo).empty? Not sure) if you need to check if it has
contents. Yield ftw!