governor_comments

Governor[http://carpeliam.github.com/governor/] (named after Rod Blagojevich) is the pluggable blogging platform for Rails, built for people who want to build their blog into their website, not build their website into their blog.

governor_comments is a plugin for Governor, allowing users and guests to comment on your blog.

Dependencies

Setting Up

In your Gemfile, add the following:

gem 'governor'
gem 'governor_comments'

Once you’ve installed the gem into your app, you need to run the generator:

rails generate governor:create_comments [RESOURCE]

If you’ve only created one type of resource (which is typical), then you won’t need any arguments. Otherwise, you’ll need to specify which model you want to add comments to. This will create a Comment class and associated migration. If you’ve created multiple resource types and you’d like to use comments with multiple types, then specify --polymorphic as an option.

Make sure to add the name, email, and website fields to your User model if they don’t exist already.

Usage

Now, when you browse to an article, you’ll see places to add comments right in the page. You really don’t have to do anything special at this point.

Contributing to governor_comments

Copyright © 2011 Liam Morley. See LICENSE.txt for further details.