Outdated content for railties/bin/rails ?

26 views
Skip to first unread message

Amree Zaid

unread,
Mar 21, 2015, 3:45:13 PM3/21/15
to rubyonra...@googlegroups.com
I might be wrong, but here it goes:

From the doc (http://guides.rubyonrails.org/initialization.html#railties-bin-rails):

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?

Xavier Noria

unread,
Mar 24, 2015, 4:43:15 AM3/24/15
to rubyonra...@googlegroups.com
That guide is just an early draft that should be totally rewritten. Should probably remove it from the index.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Documentation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-do...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-docs.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages