2013-02-28 101 views
1

無法解決我所做的工作,它會在本地主機上運行,​​但不會在我部署更多的時候運行我已經遷移了數據庫並重新啓動了heroku,但是它仍然沒有工作。NoMethodError(undefined method`current_user ='heroku and devise

我的Heroku的日誌

NoMethodError (undefined method `current_user=' for #<Class:0x000000044ac488>) 

CURRENT_USER被多次引用的應用程序和以前工作得很好。這是試圖加載許多不同的頁面時,同樣的錯誤。這不是指向我去一個特定的行動...

+0

你的ApplicationController是什麼樣的? – 2013-02-28 04:17:13

+0

類ApplicationController中 tessad 2013-02-28 04:17:39

+0

另外,根據日誌,該錯誤時訪問根路徑中發生'/'。但是您提供的操作是「更新」。你將'/'路由到'#update'嗎? – 2013-02-28 04:19:15

回答

0

這種情況因爲我不小心刪除了設計路線:

devise_for :users, controllers: {registrations: "registrations"} 
end 
相關問題