2013-02-28 103 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 
相关问题