def manageable_icon(name, size = :small, options = {})
      return "" if name.nil?

      dimension = ( (size == :small) ? "16" : "32" ).html_safe
      options[:alt] ||= name.capitalize.gsub("_", " ")

      image_tag(asset_path("manageable/icons/#{dimension}x#{dimension}/#{name}.png"), {
        :alt => options[:alt]
      })
    end
def manageable_icon(name, size = :small, options = {})
      return "" if name.nil?

      dimension = ( (size == :small) ? "16" : "32" ).html_safe
      options[:alt] ||= name.capitalize.gsub("_", " ")

      image_tag(asset_path("manageable/icons/#{dimension}x#{dimension}/#{name}.png"), {
        :alt => options[:alt]
      })
    end
Display an icon

 name - The icon to display
 size - One of :small or :large (optional)
 options - A hash to be passed to the image_tag helper (optional)

 Example:
   manageable_icon("add")
   # => image_tag("/assets/manageable/icons/16x16/add.png", :alt => "Add")
   manageable_icon("new_item", :large)
   # => image_tag("/assets/manageable/icons/32x32/new_item.png, :alt => "New Item")

 Returns an image tag, ready to be displayed in a template.