lib/generators/dry_crud/templates/app/helpers/standard_helper.rb
def action_icon(icon, label = nil)
    html = content_tag(:i, "", :class => "icon-#{icon}")
    html << ' ' << label if label
    html
  end
# Outputs an icon for an action with an optional label.
Outputs an icon for an action with an optional label.
Outputs an icon for an action with an optional label .
def action_icon(icon, label = nil)
    html = content_tag(:i, "", :class => "icon-#{icon}")
    html << ' ' << label if label
    html
  end
def action_icon ( icon , label = nil ) html = content_tag ( :i , "" , :class => "icon-#{icon}" ) html << ' ' << label if label html end
Outputs an icon for an action with an optional label.
Outputs an icon for an action with an optional label .
icon
label