Tuka Opaleye wrote:> Hi,
>
> First I would like to ask if someone could give me the direct link to
> the mailing list this forum mirrors. This is so I can do searches
> directly and not bother folks with repeat questions.
>
> Now my question:
> I recently installed a ROR app built on Ruby 1.8.2 and moved it to ROR
> on Ruby 1.8.4. I got a few errors and had to regenerate my app in the
> later and copy the App files and a few other directories from the
> former.
>
> These two versions are on 2 different machines.
>
> I was wondering whether it Is it possible to install two versions of
> Ruby say 1.8.2 and 1.8.4 along with rails on the same machine and
> somehow switch over between ruby versions to test the apps ? Or can you
> suggest best practices when dealing with these types of situations ? Off
> the bat, I think that I could setup virtual machines on another computer
> and load up an installation for each machine... but are there other
> (better) ways ?
>
Well, I haven''t met a situation where a particular version of Ruby
hasn''t worked for me (I''ve used 1.8.2 and 1.8.4
interchangeably), but in
case it does pop up.. Why not install / compile the two ruby versions
into two separate directories, then simply alter the "shebang" line in
the application that requires Ruby 1.8.2 to point to the alternate
version of ruby on your disk?
(the shebang, if you don''t know, is the #!/usr/local/bin/ruby,
#!/c:/ruby/bin/ruby etc... line at the beginning of your dispatch.*
files in the public directory.
You''d also have to explicitly type the whole path to ruby before
script/server etc on windows (i.e. c:\ruby\1.8.2\bin\ruby script/server).
The mailing list can be found at http://rubyonrails.org/community along
with some other useful stuff (like the official Wiki).
--
Henning Kilset
Rails Foundry
http://railsfoundry.com/