def manageable_content_box(options = {}, &block)
      box_buffer = Helpers::BoxBuilder.new(self)
      box_content = capture(box_buffer, &block)

      options = {
        :id => nil,
        :class => []
      }.merge(options)

      block_class = ([ "block" ] + [ options[:class] ].flatten).join(" ")

      content_tag(:div, :class => block_class, :id => options[:id]) do
        block_out = box_buffer.buffers[:block_header].html_safe
        block_out << content_tag(:div, :class => "content") do
          content_out = ''.html_safe
          content_out = content_tag(:h2, options[:headline]) if options[:headline]
          content_out << content_tag(:div, box_content, :class => 'inner')
        end
        block_out << box_buffer.buffers[:block_footer].html_safe
      end
    end
def manageable_content_box(options = {}, &block)
      box_buffer = Helpers::BoxBuilder.new(self)
      box_content = capture(box_buffer, &block)

      options = {
        :id => nil,
        :class => []
      }.merge(options)

      block_class = ([ "block" ] + [ options[:class] ].flatten).join(" ")

      content_tag(:div, :class => block_class, :id => options[:id]) do
        block_out = box_buffer.buffers[:block_header].html_safe
        block_out << content_tag(:div, :class => "content") do
          content_out = ''.html_safe
          content_out = content_tag(:h2, options[:headline]) if options[:headline]
          content_out << content_tag(:div, box_content, :class => 'inner')
        end
        block_out << box_buffer.buffers[:block_footer].html_safe
      end
    end
Create a content box.

 options - A hash of options to apply to the box.
 &block - The content of the box, passed an instance of Helpers::BoxBuilder.

 Valid options:

 * :headline -- The headline to show in the box.
 * :class -- A class to apply to the box.
 * :id -- The ID to apply to the box.

 Example:
   <% content_box :headline => "My Box", :class => "alert", :id => "my_box" do |box| %>
     <% box.navigation do |nav| %>
       <% nav.item "List People", people_path, :active => true %>
       <% nav.item "New Person", new_person_path %>
       <% nav.item "Search", search_path(:type => "people") %>
     <% end %>

     <% box.breadcrumbs do |crumbs| %>
       <% crumbs.item "Home", root_path %>
       <% crumbs.item "People", people_path %>
       <% crumbs.item "Bob Jones", person_path(@person), :active => true %>
     <% end %>

     <p>This is a really neat box, which will be displayed with a headline and navigation.</p>
   <% end %>

 Returns the completed box, yields an instance of Helpers::BoxBuilder.