Sha256: 3d0b389b5243ff914606d57ddfb69f3ee9b728262c2820776d13d81e26ea8eb3
Contents?: true
Size: 835 Bytes
Versions: 7
Compression:
Stored size: 835 Bytes
Contents
# 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: ```ruby <%= comments_for @commentable %> ``` In order to use the helper in your templates you need to include the comments helpers in your application helper: ```ruby include Decidim::Comments::CommentsHelper ``` Finally, add the comments javascript module via Sprockets like this: ```javascript //= require decidim/comments/comments ``` ## Installation Add this line to your application's Gemfile. ```ruby gem 'decidim-comments' ``` And then execute: ```bash $ bundle ``` ## Contributing See [Decidim](https://github.com/AjuntamentdeBarcelona/decidim). ## License See [Decidim](https://github.com/AjuntamentdeBarcelona/decidim).
Version data entries
7 entries across 7 versions & 2 rubygems