Im having trouble setting up a development environment. I need some tutorial on how to install rvm with rails 3.2 and rails 2.3.14 side by side. I tried installing rvm 1.8.7 then rails 2.3.14 and rvm 1.9.3 then rails 3.2. After finishing I can’t seem to create a gemset and I tried to switch rvm 1.8.7 buy when I generate(ruby script/generate) it showed me that it was not recognized.
Im having trouble setting up a development environment. I need some tutorial on how
Share
Ideally speaking, you would want to create your gemsets before installing the rails gems. This way the two versions are segregated. I would do something like the following:
That should install and use those specific versions together. Then for the newer versions
Then you would just need to change rubies and gemsets when you need to with
rvm use version@gemset-name. Another approach is to have the ruby and gemset change with each rails project by creating a.rvmrcfile in the root of your rails project. The contents of that file would be similar to the following:I would also recommend checking out the RVM Docs as this is just the tip of the iceberg when working with RVM.