简体   繁体   English

用户不响应“设计”方法

[英]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. 他们使用了我正在使用的单独应用程序的相同名称,但是他们一直使用该名称,因此我不确定这会引起问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当运行“ rails generate devise:install”时,从devise中得到错误“用户不响应'devise'方法” - getting error from devise “User does not respond to 'devise' method” when running “rails generate devise:install” Rails:运行“ rails generate devise:install”时,用户不响应“ devise”方法 - Rails: User does not respond to 'devise' method” when running “rails generate devise:install" 用户的未定义方法“设计” - undefined method 'devise' for User Devise Controller错误:未定义的局部变量或方法`mimes_for_respond_to' - Devise Controller error: undefined local variable or method `mimes_for_respond_to' 设计不是current_user方法? - Devise not current_user method? Rails 4 + Devise:sign_in(用户)方法不起作用,不设置current_user - Rails 4 + Devise: sign_in(user) method not working, does not set current_user 电子邮件已发送,但未使用通过电子邮件确认用户的设计方法“可确认”到达邮箱 - email is sent but does not reach to mailbox using devise method “confirmable” for confirming user by email 模型如何响应:find方法? - How does the model respond to the method :find? 未定义的方法`current_user'(commontator + devise) - undefined method `current_user' ( commontator + devise ) 在邮件程序中使用设计方法“ current_user” - Using devise method 'current_user' in mailer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM