Ruby on Rails tip – generating a project with specific rails version

image_pdfimage_print

Let me qualify that I am sporting the “noob” title with my Ruby on Rails development. That being said, I hope that I can offerRuby on Rails some small help to other new RoR folks as I learn the ropes myself.

This is a simple tip which I have found very handy since I’ve updated my rails to 3.0.0 this week. If you need to generate a new project but need to use a “legacy” version of rails then you simply include the version within your code using this syntax:

rails _version_ projectname

So my current need to use 2.3.5 for a site uses this command line:

rails _2.3.5_ mysite

Small tip but big help for those like me who have to manage and support multiple versions of Rails across environments.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.