gemfileにgem 'pry-rails'を追加したらrails c や rails s が起動しなくなった。
逆にgenfileのgem 'pry-rails'をコメントアウトにしたら起動しました。
gem 'pry-rails'を有効にして起動する方法はございませんでしょうか?
よろしくお願いします!
rails c C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-rails-0.2.0/lib/pry-rails/commands.rb:3:in `block in <module:PryRails>': undefined method `create_command' for #<Pry::CommandSet:0x000000000a56b300> (NoMethodError) Did you mean? create_command_stub from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-0.9.6/lib/pry/command_set.rb:60:in `instance_eval' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-0.9.6/lib/pry/command_set.rb:60:in `initialize' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-rails-0.2.0/lib/pry-rails/commands.rb:2:in `new' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-rails-0.2.0/lib/pry-rails/commands.rb:2:in `<module:PryRails>' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-rails-0.2.0/lib/pry-rails/commands.rb:1:in `<top (required)>' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/pry-rails-0.2.0/lib/pry-rails.rb:8:in `<top (required)>' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler.rb:174:in `require' from C:/Users/mino0/game/config/application.rb:7:in `<top (required)>' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.2/lib/rails/command/actions.rb:22:in `require' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.2/lib/rails/command/actions.rb:22:in `require_application!' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.2/lib/rails/command/actions.rb:14:in `require_application_and_environment!' ib/rails/commands/console/console_command.rb:101:in `perform' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch' ib/rails/command/base.rb:69:in `perform' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<top (required)>' from bin/rails:4:in `require' from bin/rails:4:in `<main>' ```
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/03/21 10:09