开发者

What should I do with a Rails 1.1.2 app

I'm going to have to move a Rails 1.1.2 app, because my hosting contract 开发者_高级运维is going to expire.

I haven't done anything to the code for a few years and I would like to know what would be the best way to upgrade my app. Many things have changed since then, RoR isn't using a localization plugin anymore but i18n, etc..

I would like to re-deploy it to a new hosting like Heroku, and that will not allow me to use rails 1.1.2.

Should I try a rake rails:update or do I need to re-create a new project?


During the early Rails 1.2 stages a lot of methods were aggressively deprecated and the routing system was radically altered, so to upgrade your application will take a fairly serious investment of time to ensure that everything is still working. Anything prior to 1.2.5 requires this kind of overhaul to make it work in anything post 2.0.

If you're good with search and replace, you can do this much more efficiently as it's mostly a case of the route names changing throughout your controllers and views.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜