Chat Engine for real time chat between users
How to use my plugin.
Add this line to your application's Gemfile:
gem 'chat_engine'And then execute:
$ bundleOr install it yourself as:
$ gem install chat_enginethen run
$ rails g chat_engine:installfor generating channel javascript
$ rails g chat_engine:channelsafter generating channels do the following Add toastr to application.css and application.js:
*= require toastr in application.css
//= require toastr in application.js
add following association in your user model
has_many :chat_subscribers, as: :subscriber, class_name: 'ChatEngine::ChatSubscriber'
has_many :chats, through: :chat_subscribers, class_name: 'ChatEngine::Chat'
has_many :messages, as: :sender, class_name: 'ChatEngine::Message'Contribution directions go here.
The gem is available as open source under the terms of the MIT License.