简体   繁体   English

Rails 4和gem(will_paginate)无法正确部署

[英]Rails 4 and gem (will_paginate) not deploying correctly

I am working with Rails 4 and I am using this library for my pagination, but I have a problem when I deploy to production, I see this error: 我正在使用Rails 4,正在使用该库进行分页,但是在部署到生产环境时出现问题,我看到此错误:

/home/deployer/apps/app/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in require'/home/deployer/apps/app/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:inrequire': No such file to load -- will_paginate/array (LoadError) /home/deployer/apps/app/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in require'/ home / deployer / apps / app /shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:inrequire':没有要加载的文件-will_paginate / array(LoadError)

In development this library is working but in production I have this error, I was searching for this error on Google but I can't find a solution. 在开发中,此库正在运行,但在生产中却出现此错误,我正在Google上搜索此错误,但找不到解决方案。

Do you have any idea what may be wrong? 您知道什么地方可能出问题吗? Let me know when you find out please. 当您找到答案时,请告诉我。

Thanks for you help. 感谢您的帮助。

First things first, check that the will_paginate gem is enabled for production in your Gemfile . 首先,请检查Gemfile是否将will_paginate gem启用用于生产。 It may be under the :development group only. 它可能仅在:development组下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM