Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sunrise CMS Comments

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.