Ruby on Rails console is hanging when loading
Restarting Spring should fix the hanging commands:
$ bin/spring stop
I experienced hanging commands (rake, bin/rails, etc.) after deleting and recreating a new Ruby on Rails application. Google wasn't that helpful. I hope this is.
Spring will start automatically when you re-run your command.
When it is suspected that Spring is the cause of weirdness, try to run this command:
spring stop && spring start
It's something wrong with the Spring gem version I guess.
Go to your Gemfile and comment gem 'spring'. Then run bundle install
and try again.
# gem 'spring'
And then:
bundle install
If your work depends on the gem, try update the gems by:
bundle update