[英]User does not respond to 'devise' method
I'm new to rails and when trying to run a migration or anything that involves initializing this app like running it on the local server I get this error and the process is aborted. 我是Rails的新手,在尝试运行迁移或涉及初始化此应用程序(例如在本地服务器上运行该应用程序)的任何操作时,都会收到此错误,并且流程中止了。
User does not respond to 'devise' method. This usually means you haven't loaded your ORM file or it's being loaded too late. To fix it, be sure to require 'devise/orm/YOUR_ORM' inside 'config/initializers/devise.rb' or before your application definition in 'config/application.rb'
What does this mean and how can I fix it? 这是什么意思,我该如何解决?
The app is not mine, I cloned it from a repository and I'm working on it as an intern. 该应用程序不是我的应用程序,我从存储库中克隆了该应用程序,并正在将其用作实习生。 I noticed that the name of the app is actually incorrect in all the config files.
我注意到该应用程序的名称实际上在所有配置文件中都不正确。 They've used the same name of a separate app I work on, but they've used it consistently so I'm not sure that should cause a problem.
他们使用了我正在使用的单独应用程序的相同名称,但是他们一直使用该名称,因此我不确定这会引起问题。
check this question 检查这个问题
getting error from devise "User does not respond to 'devise' method" when running "rails generate devise:install" 当运行“ rails generate devise:install”时,从devise获取错误“用户不响应'devise'方法”
1st answer will probably solve your problem. 第一个答案可能会解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.