This gem requires icu4c to be installed.
If you're in a regulat BulletTrain project you can run this to check for icu4c.
./bin/setup-scripts/check_icu.rb
Then add the following to your Gemfile:
source "https://[email protected]/bullettrain" do
gem "bullet_train-conversations"
endAnd run the following on your shell:
$ bundle install
$ rake bt:link
$ rake bullet_train:conversations:install
$ rake db:migrate
$ rails restartThen install tailwindcss-stimulus-components
yarn add tailwindcss-stimulus-componentsAnd add this to the bottom of app/javascripts/controllers/index.js
// Slideover is used by the conversations gem for the inbox on small screens
import { Slideover } from "tailwindcss-stimulus-components"
application.register('slideover', Slideover)For this example, we'll start by creating a project model:
$ rails g super_scaffold Project Team name:text_field
$ rake db:migrateOnce that is in place, we can add a conversation thread to the project like so:
$ rails g super_scaffold:conversations Project Team
$ rake db:migrateAlso, because of the way CableReady reflects on certain relationships, you'll need to restart your Rails server as well:
$ rails restartNow you should be good to add a new project on your team and then drill down on it to have a conversation!
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests.
The gem is available as open source under the terms of the MIT License.