我安装插件 open_id_authentication 并出现此错误:
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in `require': no such file to load -- rack/openid (LoadError)
当我尝试启动时,rails server
实际上我的系统中安装了 rack-openid,我可以从 irb 加载它:
irb(main):001:0> require 'rack/openid'
=> true
我尝试像使用 ruby-openid 一样向 Gemfile 添加 hack,但它没有帮助:
gem "ruby-openid", :require => "openid"
gem "rack-openid", :require => "rack/openid"
我也试过
gem "ruby-openid", :require => "rack/openid"
但:
/usr/lib/ruby/gems/1.9.1/gems/bundler-0.9.7/lib/bundler/runtime.rb:38:in `require': no such file to load -- rack/openid (LoadError)
在 rails 2.3.5 应用程序中没有这个问题,我不明白为什么它会在 Rails 3 中发生。