When i am trying to execute:
bundle exec rails console
It is throwing me error as:
/gems/spring-3.1.1/lib/spring/application.rb:96:in `preload': Spring only supports Rails >= 5.2.0 (RuntimeError)
Earlier it was working fine. Can anyone help me with a workaround for this.
The workaround I did for this was to create a new project with rails 5.2.3 or something.
If you want to do the same, you can first list all your local gems by doing
gem list rails --localYou will see all your rails versions installed locally.
Then do
gem install rails -v '5.2.3'Now go to a new project directory and run
rails _5.2.3_ new appnameNow, you should be able to use the console, generate, migrate and other commands.
You can do
bundle installafter adding other relevant gems based on your apps requirement.