I might be wrong, but here it goes:
The rails in the command rails server is a ruby executable in your load path. This executable contains the following lines:
version = “>= 0”
load Gem.bin_path(‘railties’, ‘rails’, version)
But https://github.com/rails/rails/blob/v4.2.1/railties/bin/rails content showed:
git_path = File.expand_path(’…/…/…/.git’, FILE)
railties_path = File.expand_path(’…/…/lib’, FILE)
Am I missing something here?