无法弄清楚我做了什么来搞砸了。它适用于localhost但不在我部署时。我已经迁移了数据库并重新启动了heroku但它仍然没有工作。
我的heroku日志是
NoMethodError (undefined method `current_user=' for #<Class:0x000000044ac488>)
current_user被引用了很多次app并且以前工作正常。尝试加载许多不同的页面时,这是同样的错误。它并没有指向我特定的行动......
答案 0 :(得分:0)
这件事发生在我身上,因为我意外地删除了设计路线:
devise_for :users, controllers: {registrations: "registrations"}
end