# application_helper
def side_section(&block)
@side_sections ||= []
@side_sections << capture(&block)
end
def admin_area(&block)
concat('<div class="admin">', block.binding)
block.call
concat("</div>", block.binding)
end
# or...
def admin_area(&block)
if admin?
concat content_tag(:div, capture(&block), :class => 'admin'), block.binding
end
end