2014-01-16 36 views
0

我使用Rails 4個工作,我使用這個庫爲我的分頁,但我有一個問題,當我部署到生產,我看到這個錯誤:軌道4和寶石(will_paginate)未部署正確

/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)

在開發中,這個庫正在工作,但在生產中,我有這個錯誤,我在谷歌搜索這個錯誤,但我找不到解決方案。

你有什麼想法可能是錯的?請讓我知道,當你找到請。

感謝您的幫助。

回答

0

首先,請檢查寶石是否已在您的Gemfile中生產。它可能只在:development組下。

+0

嗨,在我的Gemfile中,它沒有組。 – bedomax