| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Inboxes is a young messaging system for Rails app. It:
Inboxes requires Rails 3.x and Devise for user identification (surely, messaging system is not possible without users). We recommend to use Inboxes with Faye, because it's really sexy with it.
Remember that unfortunately, Inboxes reserve 3 resources names: Discussion, Message and Speaker.
Since version 0.2.0, it is possible to add has_inboxes option to any model. For instance, it can be Person or Teacher.
Make sure that Devise and CanCan are already installed and configured in your app!
can [:index, :create], Discussion
can :read, Discussion do |discussion|
discussion.can_participate?(user)
endDefault Inboxes views are ugly, so you can copy into your app and make anything with them: rails generate inboxes:views If you have problems with installation, you can check code of demo app
By default, the gem provides localized phrases for Russian and English languages. You can easily override any of them. Here is list of all I18n phrases.
You can watch the demo of integration on YouTube
Add gem "faye" to your Gemfile and run bundle install. Install Faye by the screencast
Create messaging.js in app/assets/javascripts/ with this line: //= require inboxes/faye
Copy or replace 2 views from Inboxes example app to your application: app/views/inboxes/messages/_form and app/views/inboxes/messages/create
Add config parameters to your application config (last 2 are not necessary):
config.inboxes.faye_enabled = true
config.inboxes.faye_host = "inboxes-app.dev" # localhost by default
config.inboxes.faye_port = 9292 # 9292 by defaultWhile running Inboxes with Faye, don't forget to run Faye worker it: rackup faye.ru -s thin -E production You can read more about that on it's official page.
Finalize RSpec tests (are located in rspec branch)
Please read Code of Conduct and Contributing Guidelines for submitting pull requests to us.
The changelog is here.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License.
| Back | FazBrowse Home | New Git URL |