How to upgrade Rails app from 2.3.5 to 3.2.x?

…衆ロ難τιáo~ 提交于 2019-12-06 05:43:45

问题


I have Rails 2.3.5 app, I want to upgrade to 3.2.x. How do I upgrade to Rails 3.2.x?

Thanks


回答1:


I definitely recommend installing the Rails upgrade gem (rails upgrade gem). It's proven for me to be incredibly useful as a starting point for listing and verifying all the required upgrades to get to Rails 3.0.

I would also recommend this ebook http://www.railsupgradehandbook.com/

Once you're at Rails 3.0, you'll need to migrate to the asset pipeline, this is another good starting point: http://railscasts.com/episodes/282-upgrading-to-rails-3-1

This won't be a simple task and you'll need to ensure that your code doesn't break at each step, but these are tools I've found were great to get the ball rolling.




回答2:


Please refer the link, http://www.spritle.com/blogs/2013/02/08/upgrade-rails-2-application-to-rails-3/ It may helpful to you.



来源:https://stackoverflow.com/questions/14414803/how-to-upgrade-rails-app-from-2-3-5-to-3-2-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!