Rails 4 chat example using pusher presence channels
This is the Rails version example for:
http://net.tutsplus.com/tutorials/javascript-ajax/getting-real-time-with-pusher/
-
Add app credentials credentials on
config/initializers/pusher.rb
Pusher.app_id = APP_ID
Pusher.key = APP_KEY
Pusher.secret = APP_SECRET
- Run bundle
bundle install
- Start the server
rails s
- Open the home page in different tabs and enjoy :)