Ruby on rails 用户不响应‘;设计’;方法在运行时执行

Ruby on rails 用户不响应‘;设计’;方法在运行时执行,ruby-on-rails,devise,routes,runtime-error,Ruby On Rails,Devise,Routes,Runtime Error,在运行rails服务器时,在开发过程中遇到代码中的临时错误后,我偶尔会遇到此错误 [INFO] Started GET "/dashboard" for 127.0.0.1 [FATAL] RuntimeError (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 su

在运行rails服务器时,在开发过程中遇到代码中的临时错误后,我偶尔会遇到此错误

[INFO] Started GET "/dashboard" for 127.0.0.1
[FATAL]
RuntimeError (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'):
  config/routes.rb:6:in `block in <top (required)>'
  config/routes.rb:1:in `<top (required)>'
  config/initializers/logger_config.rb:27:in `call_with_quiet_assets'

有人对此有办法吗?对于开发人员来说,每次发生这种情况都要重新启动服务器是非常令人沮丧的,其他解决方案是解决designe的初始化问题


每次我编辑某些似乎被缓存的ajax抓取时,这仍然困扰着我。

只是一个旁注:我确实在config/routes.rb:6调用了
design_for:users,:controllers=>{…}
来覆盖一些designe控制器功能。“有人对此进行了修复吗?”-错误消息中内置了指令。你跟踪他们了吗?是的。在designe.rb和application.rb中,我都需要“designe/orm/active_record”。这更可能是缓存问题,因为每当我更改调用activerecord where的代码时,缓存的失效会导致它丢失到用户表的链接。我确实需要进行更多的调查,因为这可能与Desive无关。
[INFO] Started GET "/dashboard" for 127.0.0.1
[FATAL]
ActionController::RoutingError (No route matches [GET] "/cancel"):
  config/initializers/logger_config.rb:27:in `call_with_quiet_assets'