错误无法加载此类文件 -- user_agent/browsers/playstation (LoadError)

Error cannot load such file -- user_agent/browsers/playstation (LoadError)

当在 运行 rails s 或 rails c 在项目中 ruby v2.1.4 和 rails 3.2.13

/home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in require': cannot load such file -- user_agent/browsers/playstation (LoadError) from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inblock in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in load_dependency' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inrequire' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/useragent-0.16.0/lib/user_agent/browsers.rb:12:in <top (required)>' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inrequire' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in block in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:inload_dependency' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/useragent-0.16.0/lib/user_agent.rb:2:in' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inblock in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in load_dependency' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inrequire' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/useragent-0.16.0/lib/useragent.rb:1:in <top (required)>' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inrequire' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in block in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:inload_dependency' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in require' from /home/kop/rails/howtobuyafranchise/lib/franchise_core/lib/franchise.rb:11:in' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:inblock (2 levels) in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in each' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:inblock in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in each' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:inrequire' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/bundler-1.10.6/lib/bundler.rb:134:in require' from /home/kop/rails/howtobuyafranchise/config/application.rb:7:in' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/railties-3.2.13/lib/rails/commands.rb:39:in require' from /home/kop/.rvm/gems/ruby-2.1.4@rails3213/gems/railties-3.2.13/lib/rails/commands.rb:39:in' from script/rails:6:in require' from script/rails:6:in'

我不知道修复这个错误 请帮助我

我认为文件路径有误, 而不是:user_agent/browsers/playstation 将其更改为:

useragent/browsers/playstation

由于我不知道你的 Gemfile 中有什么,我对这个错误的假设之一是你没有在你的 Gemfile 中包含 gem 'useragent', '~> 0.14.0' 然后 运行 bundle install