Question: 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? ex: C:\rails railstest Thanks in advance! - Thad
Niklas Aldergren
2005-Jan-09 22:38 UTC
Re: How does rails know which version to run at cmdline ?
On Wed, 5 Jan 2005 14:57:55 -0600, Thad Guidry <thadguidry-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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