Upgrade Rails App From 1.2.3 to 3.1.0? -
i'm working on rails 1.2.3 version. want upgrade rails version ruy version 1.8.6 1.9.7.
is major pain work such older version in running condition. want advance features of rails not supporting older version .
please suggest me way upgrade version , ruby version.
thanks....
that quite leap. best bet create new rails 3.1 app , manually migrate code over.
gem install rails #=> install latest stable release rubygems gem install bundler rails new myapp
the first thing you'll need open gemfile
, add in gems you're using in current application, , idea find gem versions of plugins you're using (in vendor/plugins
). make sure have proper gem installed type of database you're using (mysql2
, sqlite3
, or pg
).
after you've added gems need, run bundle install
bundle gems application.
as far views, models, , controllers, stuff should okay copy on new application. need tweak few things, part stuff should work.
you'll need open config/application.rb
, configure application. can use old environment.rb
file reference.
the last step before can start application change routes.rb
file new rails 3 format. worst part of migrating, you'll first need learn how write rails 3 routing file, , manually write in routes. more information can found here.
i never used rails 1 it's possible may have change other things. these 3 railscasts helpful resource you.
Comments
Post a Comment