I want to run my Rails 1.2 site in Rails 2.1

Hi there, good people.

I have a coworker who have a Rails 1.2 website (1.2.2 to be exact) and
recently I installed in her workstation Rails 2.1. Obviously, her
project doesn't work in that version because the WEBrick ask to
install the previous version.

My question: Is there a way where these versions can coexist without
making any conflict? Is there any solution? If not, how can I upgrade
that project to 2.1 without any hiccups or major changes on the source
code? Is there any tutorials where I can do this job? It's very
important because she needs to see it running again.

Thanks in advance.

Juan "The Neurochild" Escajadillo.

Hi there, good people.

I have a coworker who have a Rails 1.2 website (1.2.2 to be exact) and
recently I installed in her workstation Rails 2.1. Obviously, her
project doesn't work in that version because the WEBrick ask to
install the previous version.

My question: Is there a way where these versions can coexist without
making any conflict? Is there any solution? If not, how can I upgrade

In a nutshell you've got two choices: either you freeze rails into the
app (using the appropriately named rake tasks), which gives the app
its own copy of rails in your_app/vendor/rails or you fiddle
RAILS_GEM_VERSION in environment.rb

Fred

I have a coworker who have a Rails 1.2 website (1.2.2 to be exact) and
recently I installed in her workstation Rails 2.1. Obviously, her
project doesn't work in that version because the WEBrick ask to
install the previous version.

On another computer, install a higher Rails version, such as 1.4, change the RAILS_GEM_VERSION in environment.rb, and run rake rails:update.

Then run all your tests (you do _have_ tests, right?), and commit your code if they pass.

Then repeat for, say Rails 1.6. Keep walking the version up.

At any time, if the tests fail, rock back to the previous baselined version, and then make whatever changes are needed so the tests would pass in the higher version. Then integrate (meaning pass all tests), and then try the next version again.

You can keep going like that until you hit 2.1.

Oh, and certain plugins will die, as their authors abandoned them. You can cover that by removing the plugins and commenting-out whatever features they provided. Then rebuild them.

Everything goes fine change the versión in environment.rb and updating
with "rake rails:update". But when I hit the "rake test", this was
what the console spawned:

(in /home/jescajadillo/user/argos)

Sorry! I put back the subject to its original name to avoid confusion
and post you answers.

Everything goes fine change the versión in environment.rb and updating
with "rake rails:update". But when I hit the "rake test", this was
what the console spawned:

(in /home/jescajadillo/user/argos)

*******************************************************************
     * config.breakpoint_server has been deprecated and has no
effect. *

*******************************************************************

That is a warning that this setting is no longer used

/usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/
rake-0.8.2/lib/rake/rake_test_loader.rb" "test/functional/
festejos_controller_test.rb" "test/functional/
modificarprof_controller_test.rb" "test/functional/
avalados_controller_test.rb" "test/functional/
contactanos_controller_test.rb" "test/functional/
paso2_reservacion_controller_test.rb" "test/functional/
horarios_controller_test.rb" "test/functional/
paso1_reservacion_controller_test.rb" "test/functional/
modificarsecre_controller_test.rb" "test/functional/
entidad_beneficiarias_controller_test.rb" "test/functional/
afiliado_titulares_controller_test.rb" "test/functional/
cursos_controller_test.rb" "test/functional/
eventos_controller_test.rb" "test/functional/
usuario_cursos_controller_test.rb" "test/functional/
imagen_areas_controller_test.rb" "test/functional/
areas_controller_test.rb"
/home/jescajadillo/user/argos/app/controllers/festejos_controller.rb:
2: undefined method `scaffold' for FestejosController:Class

Dynamic scaffolding was removed from rails 2. It was then extracted into a plugin (http://github.com/rails/scaffolding/tree)

Fred

Here I went again on "rake test". These were the results:

Surely this will work, but one last question. How can I make dissapear
the config.breakpoint_server deprecation?

Remove it from development.rb

Fred