Closed bl4d3 closed 12 years ago
This is a bug introduced in Faye 0.8.0: https://groups.google.com/forum/?fromgroups#!topic/faye-users/QqIazim8MXo
The fix will be out with Faye0.8.1.
In the meanwhile, the easiest thing to do is to revert to an older Faye Gem (0.7.1).
Since Faye 0.8.0 introduced two incompatible changes, it breaks PrivatePub gem as it doesn't specify the version of Faye. I've sent a pull request to @ryanb and am working a Faye 0.8.0 compatibility fix.
thanks many, I'll try ASAP, I spent a weekend looking for the reason of it, good to know.
I confirm that with faye 0.7.1 works fine.
Hi, I have a problem to biuld up a simple notification system as Ryan has pointed in its railscast. I have this in my view
this is the create action for bets controller:
and I have this in create.js.erb
I aspect that all the client show the alert, but nothing happen, in my development.log I have
if it can help, my private_pub.ru
require "bundler/setup" require "yaml" require "faye" require "private_pub"
Faye::WebSocket.load_adapter('thin')
PrivatePub.load_config(File.expand_path("../config/private_pub.yml", FILE), ENV["RAILS_ENV"] || "development") run PrivatePub.faye_app
a strange thing happen after i started thin with "rackup private_pub.ru -s thin -E production" I'm keep getting this 2012-03-03 12:31:15 [ERROR] [Faye::RackAdapter] undefined method
[]' for nil:NilClass Backtrace: /Users/mattialipreri/.rvm/gems/ruby-1.9.2-p290/gems/faye-0.8.0/lib/faye/adapters/rack_adapter.rb:137:in
block in handle_websocket' /Users/mattialipreri/.rvm/gems/ruby-1.9.2-p290/gems/faye-websocket-0.4.1/lib/faye/websocket/api/event_target.rb:24:incall' /Users/mattialipreri/.rvm/gems/ruby-1.9.2-p290/gems/faye-websocket-0.4.1/lib/faye/websocket/api/event_target.rb:24:in
dispatch_event' Any hint about the issue? Thanks