Skip to content

Instantly share code, notes, and snippets.

@sanaumair
Created March 28, 2012 11:12
Show Gist options
  • Save sanaumair/2225463 to your computer and use it in GitHub Desktop.
Save sanaumair/2225463 to your computer and use it in GitHub Desktop.
def gplus_badge
link_to(
content_tag(:img, nil, { :src => 'https://ssl.gstatic.com/images/icons/gplus-16.png', :style => 'width:16px;height:16px;' }),
'https://plus.google.com/u/0/111138503591299012495/',
{
:target => '_blank',
:class => 'g-badge',
:style => 'text-decoration:none;'
}
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment