I have rails version 3.2.1 in my machine. The other versions installed are 3.0, 3.0.3. Whenever i run
rails new PROJECT_NAME
command ,the project gets created in version 3.2.1. I want to create the project in version 3.0.3.
What should i do?
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.
Suggest using bundler. Your project will have a Gemfile in which you specify the rails version you want:
gem “rails”, “~> 3.0.3”
Once you have installed the bundler gem,
bundle installwill install the version of Rails you have specified.Then, when you are ready to upgrade your version of Rails, you do this by specifying the version number you want to move to. Of course, this approach helps manage all of the gems that your project depends on, including the ones you only want in test and dev etc.
See http://gembundler.com/ for more.