Skip to content

Instantly share code, notes, and snippets.

@DefV
Created June 25, 2014 14:52
Show Gist options
  • Save DefV/0d4f7c1ab47941438b6b to your computer and use it in GitHub Desktop.
Save DefV/0d4f7c1ab47941438b6b to your computer and use it in GitHub Desktop.
def icon_link_to(name, link, options = {})
link_to link, options do
content_tag(:span, name) + content_tag(:i, '', class: "fa fa-#{options[:icon]}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment