News for hackers. Stuff that matters.
Re:Show HN: My first Rails Gem, Shareable – A gem for adding... by Hengjie on Sunday March 24, 2013 @08:11AM (#5431829)
Is there a demo that I can just view?
Re:Show HN: My first Rails Gem, Shareable – A gem for adding... by hmango on Sunday March 24, 2013 @08:16PM (#5434506)
Sorry haven't had time to create a demo yet but it only takes two lines of code to try the gem. To your gem file add the line: gem 'shareable' Then to your view, add the method: <%= render_shareable %> If it works you should see something similar to: http://i.imgur.com/GEJ9bAK.png with the default configuration and recommended css.