Create a 'Like' or '+1' button with make_flaggable

With the recent release of the Google Plus beta (ask me for an invite if you want one), I felt it appropriate to show a simple way to create a Like or +1 button for your Rails application. The app and concept is pretty simple, so I won't worry about posting the code below. **Install**** :**
gem 'make\_flaggable', :git =\> 'git://github.com/cavneb/make\_flaggable.git' bundle install rails generate make\_flaggable rake db:migrate

Models:

class Article \< ActiveRecord::Base make\_flaggable :like end class User \< ActiveRecord::Base make\_flagger end

Links: https://github.com/medihack/make_flaggablehttps://github.com/cavneb/make_flaggableDownload 93.4 MBDownload (iPod & iPhone) 43.9 MB

Sign up for the Newsletter

Join our newsletter and get updates in your inbox. We won’t spam you and we respect your privacy.