Decidim::Comments

The Comments module adds the ability to include comments to any resource which can be commentable by users.

Usage

The Comments component is exposed as a Rails helper:

<%= comments_for @commentable %>

In order to use the helper in your templates you need to include the comments helpers in your application helper:

include Decidim::Comments::CommentsHelper

Finally, add the comments javascript module via Sprockets like this:

//= require decidim/comments/comments

Installation

Add this line to your application's Gemfile.

gem 'decidim-comments'

And then execute:

$ bundle

Contributing

See Decidim.

License

See Decidim.