module ActionView::Helpers::CaptureHelper

def content_for?(name)



<%= yield :right_col %>
<%= yield %>


<%= yield :script %>
My Website


<%# This is the layout %>

Useful to render parts of your layout differently based on what is in your views.
content_for? checks whether any content has been captured yet using content_for.
def content_for?(name)
  @view_flow.get(name).present?
end