diff options
| author | Kir Shatrov | 2011-12-07 12:09:27 -0800 | 
|---|---|---|
| committer | Kir Shatrov | 2011-12-07 12:09:27 -0800 | 
| commit | bb029f06c1f5d7f1927adac9c693c1c3eae79189 (patch) | |
| tree | a1780c32fdff5b3c4479ff0a3edbf368714ee9bd | |
| parent | 864dea35f81820d7b1478979a1861c301ba11285 (diff) | |
| parent | 5a120096cb894ae9c51f2d448c032c7fabc5fe43 (diff) | |
| download | inboxes-bb029f06c1f5d7f1927adac9c693c1c3eae79189.tar.bz2 | |
Merge pull request #2 from dmitriy-kiriyenko/patch-1
README tweak.
| -rw-r--r-- | README.md | 10 | 
1 files changed, 6 insertions, 4 deletions
| @@ -35,15 +35,17 @@ By default, the gem provides localized phrases for Russian and English languages  You can watch the demo of integration [on YouTube](http://youtu.be/c12gey9DvyU)  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 line: `= require inboxes/faye` +2. Create `messaging.js` in `app/assets/javascripts/` with this line: `//= 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` +```ruby +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/) | 
