2014-08-29 54 views
1

我已經部署了我的應用程序的Heroku和我得到以下錯誤:NameError(未初始化不斷HomesController :: Indirizzo):Heroku的

v2014-08-29T01:59:06.582118+00:00 app[web.1]: NameError (uninitialized constant HomesController::Indirizzo): 

我使用的Indirizzo寶石和它的顯示爲安裝在Heroku,但我仍然得到這個錯誤。我試過

gem 'Indirizzo', require 'Indirizzo' 

在我的寶石文件中,因爲一個帖子建議,但那也沒有工作。

回答

0

做一個文件(配置/初始化/ require_indirizzo.rb)要求它,就像這樣:

require 'Indirizzo' 

如果這不起作用,您可以嘗試solution posted by gotva,並用這個來代替:

require 'indirizzo/address' 
+0

第一個仍然沒有工作 - 但第二個選擇。我想heroku不喜歡大寫字母。 – Carly 2014-08-30 13:43:46

相關問題