Project

discussion

0.0
No commit activity in last 3 years
No release in over 3 years
A gem to manage a thread discussion with ajax support.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies
 Project Readme

Discussion By Ashrafuzzaman.

Discussion is a thread discussion and comment solution. It:

  • Is a rails mountable engine, so mount it to your app and run it
  • Create discussion or comment on any model
  • Add your own layout
  • Built in ajaxified options
  • Built in filter with ransack and pagination with kaminari

Getting started

Discussion works with Rails 3.2 onwards. You can add it to your Gemfile with:

gem 'discussion'

Run the bundle command to install it.

rails generate discussion:install

Add the following code to your ApplicationHelper. It will be needed as this gem uses the theme of the application.

def method_missing(method, *args, &block)
  main_app.send(method, *args, &block)
rescue NoMethodError
  super
end

You can modify the route to change the mount position.

mount Discussion::Engine => "/discussion", as: 'discussion'

Configure

Configure the config/initializers/discussion.rb

Customize views

You can generate views in to your app to customize it.

rails generate discussion:views

License

MIT License. Copyright 2009-2013 Ashrafuzzaman. You are not granted rights or licenses to the trademarks of the Discussion, including without limitation the Discussion name.