Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 ReferenceError:未定义Faye_Ruby On Rails 3_Apache_Thin_Faye - Fatal编程技术网

Ruby on rails 3 ReferenceError:未定义Faye

Ruby on rails 3 ReferenceError:未定义Faye,ruby-on-rails-3,apache,thin,faye,Ruby On Rails 3,Apache,Thin,Faye,我正在尝试使用faye使用ruby on rails制作聊天室。它在WEBrick服务器上运行良好,我的老板让我在apache服务器上实现它,我尝试过,但有一些错误(由firebug显示): gem文件中包含gem'faye',faye版本为'0.8.8';'安装了“瘦”按钮。精简版:“1.5.0” 谁能帮助解决这些问题?谢谢 在html文件中包括以下内容 TypeError: element.dispatchEvent is not a function var

我正在尝试使用faye使用ruby on rails制作聊天室。它在WEBrick服务器上运行良好,我的老板让我在apache服务器上实现它,我尝试过,但有一些错误(由firebug显示):

gem文件中包含gem'faye',faye版本为'0.8.8';'安装了“瘦”按钮。精简版:“1.5.0”
谁能帮助解决这些问题?谢谢

在html文件中包括以下内容

    TypeError: element.dispatchEvent is not a function
           var client = new Faye.Client('http://192.168.2.1:9292/faye');
    ReferenceError: Faye is not defined
           var client = new Faye.Client('http://192.168.2.1:9292/faye');