Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a new rails app in 3.0.10 while I have 3.1.3

I want to create a new rails app in 3.0.10 but the latest rails in my machine is 3.1.3. If I run:

gem list rails

Then I get the following output:

*** LOCAL GEMS ***

rails (3.1.3, 3.0.11, 3.0.10, 3.0.9, 3.0.7, 3.0.6, 3.0.4.rc1)
rails3-jquery-autocomplete (1.0.5)

Now I have applications in both 3.1 and 3.0 so I don't want to remove 3.1. How can I create this new rails app in 3.0.10?

like image 569
Kashyap Avatar asked Mar 19 '12 06:03

Kashyap


1 Answers

To create a rails application for a specific version you can use this syntax: $rails _3.0.10_ new appname

NOTE: The underscores are needed.

like image 189
Aldo 'xoen' Giambelluca Avatar answered Oct 07 '22 09:10

Aldo 'xoen' Giambelluca