Rails アプリの開発段階では、rails console
コマンドを使用する必要があります。このコマンドでは、コマンドをナビゲートしたり、前のコマンドをコンソールに呼び出したりするなど、コマンドを変更する必要もA
あります。当然、エラーが発生します.-B
C
D
さらに、Ruby 2.0.0 と rbenv を使用する Ubuntu でこの問題に直面しました。私のGemfileではpry-rails
、rb-readline
('~> 0.4.2')のようなgemが定義されています。
NEW 1: から終了する前のエラー出力は次のrails console
とおりです。
FATAL: Pry failed to get user input using `Readline`.
To fix this you may be able to pass input and output file descriptors to pry directly. e.g.
Pry.config.input = STDIN
Pry.config.output = STDOUT
binding.pry
NEW 2: 実行rails console
してから bash
も削除しましたが、問題は引き続き発生します。pry-rails
Gemfile