Created
June 25, 2014 14:52
-
-
Save DefV/0d4f7c1ab47941438b6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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