Multiple Rails versions, multiple database sources, and mutiple gem versions


#1

Dear All,

I am doing volunteer work for numerous groups using different Rails
versions, different Ruby versions, different database sources, and
different gem versions. Everything was going fine, working in Windows 7
with Aptana 3 Studio, and more often at rails console. But for some
reason
I am getting errors that I have never seen before involving threads,
etc.
I am not seeking solutions to those errors, what I am seeking is tried
and
true suggestions as to what my development environment should be. Going
to
the MAC is not possible due to expense. I am willing to partition my
drive
for Linux/UNIX, but I would need very detailed guidance.

Otherwise is there an authoritative source out there that will allow me
to
build scenarios of Rails/Ruby components and learn what would be
required
in each?

Sincerely,

Elizabeth


#2

Windows has a rvm counterpart called pik. Which lets you switch between
multiple ruby versions.

However the best way is to develop on a VM. With large enough RAM and
two
processor cores assigned to a VM it feels like native development.

Thanks.
Ganesh


#3

Ganesh Ranganathan,

Thanks, pik is definitely new to me. I will investigate… And VM, you
mean Virtual Machine. Familiar with VMs. Could you further elaborate
as
to implementation?

Otherwise, very grateful…

Liz


#4

Thanks, thanks… I have VMs on my machine. But specific to the purpose
of
differences in matters stated above. Am I missing some point in using
VM
toward that purpose?
Liz


#5

Yes I mean virtual machines. To install a VM

First the iso file has to be downloaded from Ubuntu site.
Then VirtualBox software has to be downloaded
While creating a new VM, the iso has to be added in the optical drive
section
So after the VM starts, it takes you into Ubuntu installation and the
process is pretty easy.
I am sure there are detailed docs on the net for this.

A 60 GB virtual hard disk would suffice for development.

Thanks,
Ganesh


#6

I would use a different VM for each project, and use Vagrant to manage
those VMs. There are lots of resources related to using Vagrant to
manage
rails dev environments. Here is one good screen cast
https://gorails.com/guides/using-vagrant-for-rails-development.


#7

Late here, so I can’t write at length… But thanks… Will
investigate…


#8

In a linux VM you can use rvm.

Rvm supports multiple versions and gemsets. Depending on your GemFile it
will pick up the right version.


#9

https://github.com/sstephenson/rbenv is our friend for similar use
cases in GNU/Linux environment.

Regards,

Mario Barcala

Ganesh Ranganathan escribiu:

 using VM toward that purpose?
   section
   So after the VM starts, it takes you into Ubuntu installation and the
   process is pretty easy.
   I am sure there are detailed docs on the net for this.

   A 60 GB virtual hard disk would suffice for development.

   Thanks,
   Ganesh


Mario Barcala
CEO at NLPgo
http://www.nlpgo.com
Id de clave GPG: F1C15EB7


#10

Dear All,

I just wanted to offer thanks to all for your suggestions. So grateful
to
all. Will let you know the outcome in my effort.

Liz