I have setup Rails 3.0.3 and installed Ruby 1.9.2 with rvm and set rvm to use 1.9.2 by default.
However, when I create a new rails app and check the environmental variables it still reflects ruby 1.8.7, how do I update this to 1.9.2?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are probably executing an old 1.8.7 rails binary that is being found first in your UNIX search path.
You can type
which railsat the command line to see which rails executable you are running. On my machine I get:You can also check your binary search path by typing
echo $PATHIf you get a result from
which railsthat looks something like:… then you need to remove the old rails binary from your path, or use the old 1.8.7 ruby to uninstall the rails gems, so that they are not found and executed.
Once you have done this, the next time you try to execute
rails s, the 1.9.2 version of the rails binary should be executed.