aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKir2011-11-16 14:41:29 +0400
committerKir2011-11-16 14:41:29 +0400
commit661590c630f022fc678c4d5664b497db13de6eec (patch)
tree0c434d3e4560b6cb13c7184c31472dd824b5bbe5 /README.md
parent61bd4dd67fdaee93af6994d539b86d46cd1c45f1 (diff)
downloadinboxes-661590c630f022fc678c4d5664b497db13de6eec.tar.bz2
Faye integration, resources under modulev0.0.1
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 20 insertions, 3 deletions
diff --git a/README.md b/README.md
index 582eb9a..26830cb 100644
--- a/README.md
+++ b/README.md
@@ -30,11 +30,28 @@ If you have problems with installation, you can check [code of demo app](https:/
By default, the gem provides localized phrases for Russian and English languages. You can easily override any of them. [Here is](https://github.com/kirs/inboxes/blob/master/config/locales/en.yml) list of all I18n phrases.
+#Integration with Faye
+
+1. Add `gem "faye"` to your Gemfile and run `bundle install`. Install Faye by [the screencast](http://railscasts.com/episodes/260-messaging-with-faye)
+2. Create `messaging.js` in `app/assets/javascripts/` with these lines:
+
+ /*
+ = require inboxes/faye
+ */
+
+3. Copy or replace 2 views from Inboxes example app to your application: [app/views/inboxes/messages/_form](https://github.com/kirs/inboxes-app/blob/master/app/views/inboxes/messages/_form.html.haml) and [app/views/inboxes/messages/create](https://github.com/kirs/inboxes-app/blob/master/app/views/inboxes/messages/create.js.erb)
+
+4. 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 default
+
+5. Faye installation is finished. If you have any troubles, check the [example app](https://github.com/kirs/inboxes-app/)
+
##Todo
-- Add rspec tests
-- Move gem resources to namespace
-- Describe integration with Faye
+- Add RSpec tests
##Authors