# Create a ‘Like’ or ‘+1′ button with make_flaggable

> Episode of [Teach Me To Code » Screencasts](https://podistic.com/podcast/teach-me-to-code-screencasts.md) · Published July 15, 2011

- **Listen on Podistic:** https://podistic.com/episode/1297--create-a-like-or-1-button-with-make-flaggable
- **Audio:** http://traffic.libsyn.com/tmtc/make_flaggable.mov (video/quicktime)

## About this episode

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
