installing older rails

I would like to install the older version of rails instead of the one
released last week under windows-installer. when I typed gem install
rails --remote, the newer version is installed and some of the old
methods I was using are no longer supported.

can anyone tell me how to edit the batch file and execute command
lines so that I can install the older version without having ZliBuff
error and other methods not supported. thanks.

The versions i am using are
Ruby 1.8.6.25
Gem 0.9.2
REL 1.2.5

System-wide, you can do this:

gem install --version=1.2.6 rails --include-dependencies

That’ll get you what you want.