def manageable_button(body, url, html_options = {})
      html_options[:class] = [html_options[:class], "button"].compact.join(" ")
      icon = manageable_icon(html_options.delete(:icon), :small, :alt => body) if html_options[:icon]

      link_to url, html_options do
        [icon, body].compact.join("&nbsp;").html_safe
      end
    end
def manageable_button(body, url, html_options = {})
      html_options[:class] = [html_options[:class], "button"].compact.join(" ")
      icon = manageable_icon(html_options.delete(:icon), :small, :alt => body) if html_options[:icon]

      link_to url, html_options do
        [icon, body].compact.join("&nbsp;").html_safe
      end
    end
Creates a link_to button