Adding social share buttons in rails application by using 'shareable' gem

Posted by : on

Category : Ruby

However in practice you need to add social sharing buttons inside your rails applications. Its very easy to add social buttons in rails application by using ‘shareable’ gem.

here is an example:

Install Gem

put gem ‘shareable’ in your gem file. then run

bundle install.

Show buttons in rails view:


 <%= render_shareable %> 

in your view this will add default buttons in your view.

Customizing buttons:

you can customize buttons by using the helper methods. for more detail click here.

About Ram Laxman Yadav
Ram Laxman Yadav

Senior Software Engineering Professional | Tech Enthusiast | Mentor | Payments | Hospitality | E-Commerce, based in NCR, India

Email :

Website :