Upgrade a Rails application from 1.2.3 to 3.1.0?

I am working on Rails version 1.2.3. Now I want to update the version of Rails, as well as the version with rights from 1.8.6 to 1.9.7.

Is it a big pain to work with such an older version, but it is in working condition. Now I want to promote Rails functions, but I do not support this older version.

Please suggest me a way to upgrade the version and the ruby ​​version.

Thank....

+5
source share
3 answers

This is a pretty leap. It is best to create a new rails 3.1 application and then manually port your code.

gem install rails #=> will install the latest stable release from rubygems
gem install bundler
rails new myapp

, , Gemfile , , gem , ( vendor/plugins). , (mysql2, sqlite3 pg).

, , bundle install, .

, , , . , , , .

config/application.rb . environment.rb .

routes.rb Rails 3. , , Rails 3, . .

Rails 1, , , . Railscasts, , .

+4

2.3.10 3.0.9 , 3.1, .

, .

, , .

, - , , , ..... rails 3 ruby ​​1.9.2

0

, , ! Rails 1 . Rails 2, .

Rails 1.2.3?

, Rails, Gems, Routing, Asset Pipeline, Named Scopes, API ActiveRecord,... Ruby - . , , .

. , , Rails 3.1: -)

Rails 3.1 , 1.2.3 .

, "" , - ...

0

All Articles