How to use RVM and different versions of rails
ruby-on-rails, rvm
Solution
I also install rails version 4.0.0. But I don't know how to use different versions of rails. when i create new project it shows rails version 3.x. I want to upgrade it to version 4. How to check list of all installed rails and how to use latest one. Need Help. Thank you.
this is because you're still using the current gemset rails3tutorial2ndEd
You need to create a different gemset:
rvm gemset create <new_gemset_name>
then use it:
rvm gemset use <new_gemset_name>
and finally install a new rails version:
gem install rails -v <version_number>
only after doing these things will you be able to make a new project with a different rails version.
Problem
Hi I am beginner to ruby on rails. I have following this on my machine ``` nilkash@nilkash:~$ ruby -v ruby 1.9.3p392 (2013-02-22 revision 39386) [i686-linux] nilkash@nilkash:~$ rails -v Rails 3.2.3 nilkash@nilkash:~$ rvm -v rvm 1.19.6 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] nilkash@nilkash:~$ rvm list rvm rubies =* ruby-1.9.3-p392 [ i686 ] # => - current # =* - current && default # * - default nilkash@nilkash:~$ rvm gemset list gemsets for ruby-1.9.3-p392 (found in /home/nilkash/.rvm/gems/ruby-1.9.3-p392) (default) global latest_rails_stable => rails3tutorial2ndEd ``` I also install rails version 4.0.0. But I don't know how to use different versions of rails. when i create new project it shows rails version 3.x. I want to upgrade it to version 4. How to check list of all installed rails and how to use latest one. Need Help. Thank you.