简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM