[Rails] How does rails know which version to run at cmdline ?
Niklas Aldergren
n.aldergren at gmail.com
Sun Jan 9 22:38:00 GMT 2005
On Wed, 5 Jan 2005 14:57:55 -0600, Thad Guidry <thadguidry at gmail.com> wrote:
> How does versioning happen in rails? I see under
> C:\ruby\lib\ruby\gems\1.8\gems that there are multiple versions, since
> I've been doing gem updates. What determines which version is run
> when I do a cmdline for rails to make an app?
The rails script is just a stub. It loads rails via gems, and is set up
to use the latest version found.
After looking through the code, I realized you can force a specific version.
If the first word on the command-line is enclosed in underscores, this will be
used as a version specification:
$ rails _0.9.2_ /my/new/app
But this doesn't seem to change the environment, so the latest version
will still be loaded inside the app.
/Niklas
More information about the Rails
mailing list