Migration from rails 2.1.1 - 2.2.2

I am working on a project using rails 2.1.1. With the new version 2.2.2, I want to upgrade to the new version. Is there anything I need to change to port my 2.1.1 controllers, views, and models?

+4
source share
5 answers

Remember to run the Rake update task

rake rails:update 

This will continue and make sure it updates any scripts and configs to reflect 2.2.

After you installed 2.2, do:

 rake -T 

To view the available tasks, double-check it and release it, and you will work.

Good luck

+6
source

There are no major changes in how this is done. Here is the rejection list

Of course, the best way to quickly detect changes is to have a good set of tests in place. If you do not have this, I suggest dropping 2.2 in vendor / rails and manually clicking on the site.

+2
source

If you have plugins that break, check out GitHub. I had a bunch of plugins without official corrections. I was looking for github and people have already fixed them. Made an update much better than it could be.

0
source

Not really. I would have to agree with @ dasil003 and say to check for deviations, and run your tests accordingly after the update. However, you will need rubygems 1.3.1 to upgrade, so be sure to do this or your application server will not start.

0
source

You will also need to remove the existing / vendor / plugins / activescaffold directory and replace it with a rails 2.2 compatible one. Otherwise, you will get the scary (and poorly documented) "no method" pick_template "error".

To do this, you need to run the following in the application’s base directory:

script / plugin install git: //github.com/activescaffold/active_scaffold.git -r 'rails-2.2' # add -force if necessary

Then add: script / plugin install git: //github.com/ewildgoose/render_component.git -r rails-2.2

I came across this transition from 2.1 to 2.3, but I read elsewhere that the problem is steadily going from 2.1 to 2.2 as well. Adding to save other problems.

0
source

All Articles