If you are seeing this message, your binstub at ./bin/rails was generated by
Bundler instead of Rails.
Feb 15, 2022
Running rails s I get the error
If you are seeing this message, your binstub at ./bin/rails was generated by
Bundler instead of Rails.You might need to regenerate your `rails` binstub locally and add it to source
control:rails app:update:bin
Updating bin using rails ```rails app:update:bin``` didn’t work for me.
Solution:
1: Delete bin files
rm -rf bin/*
2. Install on a new terminal session
bundle exec rake app:update:bin