Last Updated: February 25, 2016
·
1.175K
· sameera207

Creating a rails application with an older version of rails

Sometimes you probable want to develop a rails application with an older version of rails

earlier today.. I had the same requirement, I wanted to create a rails application with version 3.0.0 where as I currently have the latest rails version as 3.2.6 installed

following my gem list for rails

gem list rails

*** LOCAL GEMS ***

rails (3.2.6, 3.2.5, 3.2.3, 3.1.3, 3.0.5, 3.0.0)

So here is the command that can be used to get this working

rails _<version of rails>_ new <project name>

Ex:

rails _3.0.0_ new sample_project