This gem provides a robust comment functionality for any rails application.
Requirements
-
Rails version
v4.2.6 -
Ruby version
ruby-2.3.1 -
ActiveRecord
>= 3.2
Getting Started
Add this line to your Gemfile
gem 'comment_box'And then execute:
$ bundle installOr install it yourself
$ gem install comment_boxInstallation
Run the generator (replace MODEL with your desired comment class name, e.g Comment)
$ rails generate comment_box MODELThis generator will create a model, controller and migration for the model.
The generator also configures your config/routes.rb file to point to the controller.
Next, run
rake db:migrateRestart your application and enjoy your new commenting platform.