Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sunrise CMS Comments
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
lib
.gitignore
MIT-LICENSE
README.rdoc
Rakefile
sunrise-comments.gemspec

README.rdoc

Sunrise Comments

Comments system module for sunrise-cms

Install

gem "sunrise-comments"

bundle install

rake sunrise_comments_engine:install:migrations

rails generate sunrise:comments:install

In generated migration add “comments_count” column for counter cache:

add_column :posts, :comments_count, :integer, :default => 0

rake db:migrate

Usage

class Post < ActiveRecord::Base
  include Sunrise::Comments::Base
end

class User < ActiveRecord::Base
  include Sunrise::Comments::Author
end

Copyright © 2011-2012 Fodojo, released under the MIT license

Something went wrong with that request. Please try again.