从应用程序中删除Devise的问题



我最初使用Devise来处理应用程序上的身份验证,但由于我正在切换到无密码、完全开放的ID/OAuth身份验证系统,我决定删除Devise。

我首先"销毁"了模型和视图,从Gemfile中删除了gem,删除了初始化器文件(config/initializers/devert.rb)和我找到的一个区域设置文件(config/lotes/devert.en.yml)

我已经查看了堆栈和源代码(GREP),但找不到任何可供设计的引用。

问题是,现在我的应用程序不断向我返回这个错误:

No such file or directory - /home/develop/0523a/fivetalk/config/locales/devise.en.yml

有人知道问题出在哪里吗?

这是堆栈

activesupport (3.0.3) lib/active_support/file_update_checker.rb:25:in `stat'
activesupport (3.0.3) lib/active_support/file_update_checker.rb:25:in `updated_at'
activesupport (3.0.3) lib/active_support/file_update_checker.rb:25:in `map'
activesupport (3.0.3) lib/active_support/file_update_checker.rb:25:in `updated_at'
activesupport (3.0.3) lib/active_support/file_update_checker.rb:29:in `execute_if_updated'
activesupport (3.0.3) lib/active_support/i18n_railtie.rb:23:in `_callback_before_5'
activesupport (3.0.3) lib/active_support/callbacks.rb:414:in `_run_prepare_callbacks'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:45:in `call'
activesupport (3.0.3) lib/active_support/callbacks.rb:415:in `_run_call_callbacks'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/show_exceptions.rb:46:in `call'
railties (3.0.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.3) lib/rails/application.rb:168:in `call'
railties (3.0.3) lib/rails/application.rb:77:in `send'
railties (3.0.3) lib/rails/application.rb:77:in `method_missing'
rack (1.2.1) lib/rack/content_length.rb:13:in `call'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
rack (1.2.1) lib/rack/handler/webrick.rb:13:in `run'
rack (1.2.1) lib/rack/server.rb:213:in `start'
railties (3.0.3) lib/rails/commands/server.rb:65:in `start'
railties (3.0.3) lib/rails/commands.rb:30
railties (3.0.3) lib/rails/commands.rb:27:in `tap'
railties (3.0.3) lib/rails/commands.rb:27
script/rails:6:in `require'
script/rails:6

(超延迟)

我必须按照问题中描述的步骤操作,然后我需要重新启动服务器,但我没有手动完成。这就是解决问题的办法。以防其他人看到这个而不看评论。

相关内容

  • 没有找到相关文章

最新更新