How to create project with prior version of Rails

Hi and Thanks in advance

I have 2.02 installed on my machine but I need to create a 1.25
project. If I create the project, it is a 2.02 app and when I do:
svn export http://dev.rubyonrails.org/svn/rails/tags/rel_1-2-5 vendor/
rails

it trys to run the newly created 2.0.2 app in 125 and I get

undefined method `last' for {}:Hash
C:/rails_projects/new_app/rakefile:10

How do I make a 125 rails project when 2.02 is installed?

Again, Thanks for you help

twscannell at gmail

Ryan Bigg wrote:

You can do:

gem install rails -v=1.2.5
rails -d mysql

and then manually change the RAILS_GEM_VERSION in config/environment.rb.

Hmm. You shouldn't build the 1.2.5 project with the 2.0.2 rails
command. After installing the 1.2.5 gem, you can execute the rails
command in that gem directly:

$ ruby /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/bin/rails
my_app_name

If you installed ruby gems someplace different, just fix the path to
point to the right place.

Ryan Bigg wrote:

You can do:

gem install rails -v=1.2.5
rails -d mysql

and then manually change the RAILS_GEM_VERSION in config/
environment.rb.

Hmm. You shouldn't build the 1.2.5 project with the 2.0.2 rails
command. After installing the 1.2.5 gem, you can execute the rails
command in that gem directly:

$ ruby /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/bin/rails
my_app_name

or rails _1.2.5_ myapp
Executables created with gem are smart enough to see the version
argument and work out that they should be loading that version

Fred

No, I don't think so because the rails app you generated has the
structure of a 2.0 app.

But you can generate a NEW rails 1.2.6 project like this

$rails _1.2.6_ myproject