私はレールとのdeviseを使用しています5.1.4。異なる接頭辞: "/"と "http:/ localhost:3000" deviseと
different prefix: "/" and "http:/localhost:3000"
私はルビー2.4.1とrbenv使用しています:私は間違ったパスワードでログインしようとしているとき、私はこのエラーを取得します。私はruby 2.3.3と同じ問題を抱えていました。
/home/badr/.rbenv/versions/2.4.1/lib/ruby/2.4.0/pathname.rb:520:in `relative_path_from'
devise (4.3.0) lib/devise/failure_app.rb:58:in `recall'
devise (4.3.0) lib/devise/failure_app.rb:39:in `respond'
actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action'
actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
actionpack (5.1.4) lib/action_controller/metal.rb:242:in `block in action'
devise (4.3.0) lib/devise/failure_app.rb:21:in `call'
devise (4.3.0) lib/devise/delegator.rb:5:in `call'
warden (1.2.7) lib/warden/manager.rb:143:in `call_failure_app'
warden (1.2.7) lib/warden/manager.rb:129:in `process_unauthenticated'
warden (1.2.7) lib/warden/manager.rb:44:in `call'
rack (2.0.3) lib/rack/etag.rb:25:in `call'
rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
rack (2.0.3) lib/rack/head.rb:12:in `call'
rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
rack (2.0.3) lib/rack/method_override.rb:22:in `call'
rack (2.0.3) lib/rack/runtime.rb:22:in `call'
activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
railties (5.1.4) lib/rails/engine.rb:522:in `call'
puma (3.10.0) lib/puma/configuration.rb:225:in `call'
puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
puma (3.10.0) lib/puma/server.rb:437:in `process_client'
puma (3.10.0) lib/puma/server.rb:301:in `block in run'
puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
任意のアイデアこれはから来るかもしれない:
ここでフルスタックトレースですか?
更新: 私はプロジェクトを他のマシン上で正常に動作し、実際にそれがないかどうかを確認するためにcloud9上のワークスペースを作成しました!だから私のルビーのインストールで何かが間違っているようです。問題が発生する前に、私は自分のLinuxマシン上のプロジェクトフォルダを破壊し、再びbitbucketからクローンを作成しました。
https://github.com/plataformatec/devise/issues/4096 – Kris
私はruby 2.2.6をインストールするつもりです。同じ問題が発生するかどうかを確認してください... – bTazi
エラーメッセージに「http:/ '、shouldnそれは 'http://'でしょうか? – Stefan