I might be wrong, but here it goes:
From the doc (The Rails Initialization Process — Ruby on Rails Guides):
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:
#!/usr/bin/env ruby
git_path = File.expand_path(‘…/…/…/.git’, FILE)
if File.exist?(git_path) railties_path = File.expand_path(‘…/…/lib’, FILE) $:.unshift(railties_path) end require “rails/cli”
``
Am I missing something here?