brettmhammond / faye_tutorial

St. George Ruby Meetup: Using Faye with Ruby on Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Messaging with Faye

This is a quick build of a full Ruby on Rails 3.2 application implementing a simple chat application using Faye for the St. George, UT Ruby Meetup group.

Prerequisites

This application is using Mongoid 3.0.0rc as the database. You can use any database you want, have at it.

I am using the gem private_pub created by Ryan Bates to manage the connections between Faye and Ruby. You can use just the Faye gem but will have to do a few extra steps up to you!

I am not a Faye expert, I have just used it enough to know whats going on and can put together a presentation on it.

I am using Twitter Bootstrap with the bootstrap-sass gem to give you a quick user interface, gotta make it beautiful for ya right?

Gems being used

gem 'rails', '3.2.3'

gem 'mongoid', '~> 3.0.0rc'
gem 'moped', '~> 1.0.0.rc'

gem 'thin'
gem 'private_pub'

gem 'jquery-rails'
gem 'haml-rails'

Starting Faye/Private_Pub

rackup private_pub.ru -s thin -E production

Links

Faye Website - http://faye.jcoglan.com/ Private Pub - https://github.com/ryanb/private_pub

About

St. George Ruby Meetup: Using Faye with Ruby on Rails


Languages

Language:Ruby 96.0%Language:JavaScript 4.0%