I had a similar issue going through the Ruby start guide in Windows. The command bin/rails server
would throw an error like
cannot load such file -- .../config/application (LoadError)
The solution I found was to open the Ubuntu app (should be installed as part of the installation guide) and recreate the project in there.