This gist describes how to implement faye with a rails 4 application.
A user receives a live notification when another user login.
A rails 4 application with devise for user management
2 gems:
A jquery plugin to notify my users like http://notifyjs.com/
After gems thin and faye have been added to Gemfile make bundle install
Create a faye.ru file and launch you server with rackup faye.ru -s thin -E production
Just read the file : application.html.erb
Add faye_websocket.js on your app/assets/javascripts folder
Load previous file on application.js
Add a service object to publish a message to a faye channel without use EventMachine
Call FayeNotification after a user login with application_controller.rb and its after_sign_in_path_for method
Now you just need to run you faye server with : rackup faye.ru -s thin -E production