def manageable_controls(options = {})
      options[:class] ||= ""
      options[:class] << " control"
      options[:class].strip!

      items = Helpers::NavigationBuilder.new
      yield items if block_given?

      content_tag("div", options) do
        items.collect { |item|
          manageable_button(item[:label], item[:href], item[:link_options].merge(:icon => item[:icon]))
        }.join("").html_safe
      end
    end
def manageable_controls(options = {})
      options[:class] ||= ""
      options[:class] << " control"
      options[:class].strip!

      items = Helpers::NavigationBuilder.new
      yield items if block_given?

      content_tag("div", options) do
        items.collect { |item|
          manageable_button(item[:label], item[:href], item[:link_options].merge(:icon => item[:icon]))
        }.join("").html_safe
      end
    end
Creates a set of buttons

 options - A hash of attributes to apply to the wrapping div tag

 Example:
   <div class="block">
     <div class="content">
       <%= controls do |c|
         c.item "Copy", copy_person_path(person), :icon => "copy_person"
         c.item "Delete", person_path(person), :method => :delete
       end %>
     </div>
   </div>

 Returns a set of controls to be displayed.