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
Try <%= yield(:title).presence || 'My Default Title' %>
<%= yield(:title).presence || 'My Default Title' %>
Object#presence is equivalent to object.present? ? object : nil (AS 3 rc docs), and essentially allows the traditional syntax with the titles.
Object#presence
object.present? ? object : nil