A rails plugins to display social network icons easily in your web applications.
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
lib
script
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
social_icons.gemspec

README.rdoc

SocialIcons

Installation

Update Gemfile

gem 'social_icons', :git => “github.com/ozgun/social_icons.git

In order to load javascript only once, add the following code to your layout(probably application layout):

<pre>

<head>
  ...
  <%= yield(:head) %>
</head>
<body>
  <%= yield(:after_body) %>
  ...
</body>

</pre>

Usage

<%= print_social_icons(link: post_url(@post), title: post.title) %>

<%= facebook_comments(link: post_url(@post)) %>