I am using ruby 2.5 and rails 5.0.1 for my application. when i try to run console or generate controller or migration it gives me this error:
Running via Spring preloader in process 6473
Loading development environment (Rails 5.0.1)
Traceback (most recent call last):
/home/abwahed/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.0.1/lib/spring/application.rb:161:in
fork': undefined method reject!' for nil:NilClass (NoMethodError)