Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Freeze rails to older version (See related posts)

This is an explanation of how to make a new, fresh Rails app of any released version of Rails.

First, generate a new rails app:

rails my_project
cd my_project


Find the release you want to use from this list. There's a bunch of stuff in there - the Rails releases are prefixed with rel_.

Then, ender this command to freeze Rails to the version you want. Remember to change the TAG= part (doh).

rake rails:freeze:edge TAG=rel_1-0-0


When this finishes, run the 'rails' command of the rails version you just froze to to have the rails app itself (the stuff in environment/ and so on) turned into the correct version.

ruby vendor/rails/railties/bin/rails .


Woot!

You need to create an account or log in to post comments to this site.


Click here to browse all 4858 code snippets

Related Posts