def link_to_with_icon(options = {})
      options[:class] ||= 'btn btn-default btn-xs'
      icon = bootstrap_icon_tag(options.delete(:icon))
      content = options.delete(:text) ? icon + ' ' + options[:title] : icon
      link_to content, options.delete(:path), options
    end
def link_to_with_icon(options = {})
      options[:class] ||= 'btn btn-default btn-xs'
      icon = bootstrap_icon_tag(options.delete(:icon))
      content = options.delete(:text) ? icon + ' ' + options[:title] : icon
      link_to content, options.delete(:path), options
    end
Creates a Boostrap link with icon.

 ==== Signatures

   link_to_with_icon(options)

 ==== Examples

   <%= link_to_with_icon( { icon: 'trash icon-white', title: 'Delete', path: '#' } ) %>
   # => <a title="Delete" class="btn btn-default btn-xs" href="#">
          <span class="glyphicon glyphicon-trash icon-white"></span>
        </a>'