rails console がいきなり起動しなくなりました。
該当のエラーコード
$ rails c /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.3.2/lib/action_view/cache_expiry.rb:34:in `block in clear_cache_if_necessary': undefined method `execute_if_updated' for nil:NilClass (NoMethodError) from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.3.2/lib/action_view/cache_expiry.rb:23:in `synchronize' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.3.2/lib/action_view/cache_expiry.rb:23:in `clear_cache_if_necessary' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.3.2/lib/action_view/cache_expiry.rb:11:in `before' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:428:in `block in make_lambda' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:200:in `block (2 levels) in halting' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:605:in `block (2 levels) in default_terminator' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:604:in `catch' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:604:in `block in default_terminator' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:201:in `block in halting' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:513:in `block in invoke_before' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:513:in `each' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:513:in `invoke_before' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:134:in `run_callbacks' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:111:in `run!' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:73:in `block in run!' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:70:in `tap' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:70:in `run!' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/execution_wrapper.rb:86:in `wrap' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.3.2/lib/active_support/reloader.rb:51:in `reload!' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:168:in `serve' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:139:in `run' from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>' from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from -e:1:in `<main>'
/home/ubuntu/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.3.2/lib/action_view/cache_expiry.rb
をいじった覚えはないので、nomethoderrorに困っています。
こういう時は、動いていた時の commit に対してdiffを見るとどこかでおかしなことをしていることに気がつくかも
あなたの回答
tips
プレビュー