What is the Best (easiest?) way to upgrade an app when Rails changes
I have an app which was developed under Rails 2+ and then moved to Rails 3.0+ (before assets).
I would now like to move the app to Rails 3.2.2 and RubyMine 4.0.2
I have rvm and Ruby 1.9.3 installed as well as Rails 3.2.2 (basically the most recent).
----
In the past I think I just created a new blank application and then copied files over from the app running in the older version framework.
Is this still the 'best' way, or do you have a click that will move old stuff to a new framework,?
Bob G
请先登录再写评论。
RubyMine doesn't have a button that migrate your code from Rails 3.0 to Rails 3.2. But you shouldn't create a new application and copy files from old one.
To say briefly you should migrate your application to Rails 3.1 and then migrate it to Rails 3.2.2
There is a good railscast that describes how to migrate to Rails 3.1: http://railscasts.com/episodes/282-upgrading-to-rails-3-1. Also there is an episode devoted to migration from Rails 3.1 to Rails 3.2: http://railscasts.com/episodes/318-upgrading-to-rails-3-2