Created
December 17, 2011 14:44
-
-
Save zlw/1490386 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
SITES = { | |
facebook: 'http://facebook.com', | |
twitter: 'http://twitter.com' | |
} | |
def icon(name, url) | |
content_tag :li, link_to(name, url, class: [:sticons, name]) | |
end | |
def social_icons | |
[SITES.map {|name, url| icon(name, url)}].join.html_safe | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment