Rails:fb_connect_async_js引发500错误 [英] Rails: fb_connect_async_js provokes 500 error
问题描述
当我使用* fb_connect_async_js *帮助器时,我有一个500错误。服务器日志告诉我以下内容:
故障安全响应时出现错误:不兼容的编码regexp匹配(UTF-8正则表达式与ASCII-8BIT字符串)
有没有解决方案?
我的Gemfile,如果可能有用:
source'http://rubygems.org'
gem'rails','3.1 .1'
#捆绑边Rails代替:
#gem'rails',:git => 'git://github.com/rails/rails.git'
gem'mysql2'
gem'execjs'
gem'therubyracer'
gem'activeadmin'
gem'meta_search','> = 1.1.0.pre'
gem'devise'
gem'
gem'ruby-hmac'
gem'facebooker2'
#默认情况下,生产环境中仅使用资产而不需要
#的宝石。
group:assets do
gem'sass-rails','〜> 3.1.4'
gem'coffee-rails','〜> 3.1.1'
gem'uglifier','> = 1.0.3'
end
gem'jquery-rails'
#使用ActiveModel has_secure_password
#gem'bcrypt-ruby','〜> 3.0.0'
#使用独角兽作为Web服务器
#gem'独角兽'
#使用Capistrano部署
#gem'capistrano'
#使用调试器
#gem'ruby-debug19',:require => 'ruby-debug'
group:test do
#漂亮的打印测试输出
gem'turn',:require =>假
结束
非常感谢! :)
很奇怪我关闭电脑,我的电脑,现在似乎都在工作。会话变量也许设置错误?奇怪的。
I am a new comer in Ruby on Rails. I am currently trying to install Facebooker2 gem on my project to allow users to connect through this famous network. I followed official installation guide. However, I still got an issue.
When I am using *fb_connect_async_js* helper, I got a 500 error. Server logs tell me the following:
Error during failsafe response: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
Have you any solution?
My Gemfile, if it may be useful:
source 'http://rubygems.org'
gem 'rails', '3.1.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'execjs'
gem 'therubyracer'
gem 'activeadmin'
gem 'meta_search', '>= 1.1.0.pre'
gem 'devise'
gem 'mogli'
gem 'ruby-hmac'
gem 'facebooker2'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.4'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :test do
# Pretty printed test output
gem 'turn', :require => false
end
Thank you very much! :)
Very strange. I switch off and on again my computer, and all seem to work now. Perhaps a session variable wrongly set? Weird.
这篇关于Rails:fb_connect_async_js引发500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!