Created
April 18, 2012 18:50
-
-
Save catsby/2415742 to your computer and use it in GitHub Desktop.
Sinatra Social Link helper
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
Simple social links helper | |
<ul> | |
<li>GitHub: <a href="http://github.com/ctshryock" title="@ctshryock's Github profile">@ctshryock</a></li> | |
<li>Twitter: <a href="http://twitter.com/ctshryock" title="@ctshryock's Twitter profile">@ctshryock</a></li> | |
<li>Default (Twitter): <a href="http://twitter.com/catsby" title="@catsby's Twitter profile">@catsby</a></li> | |
</ul> |
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
<!-- root/views/index.erb --> | |
Simple social links helper | |
<ul> | |
<li>GitHub: <%= social_link('ctshryock', :github) %></li> | |
<li>Twitter: <%= social_link('ctshryock', :twitter) %></li> | |
<li>Default (Twitter): <%= social_link('catsby') %></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment