lonerunners.net | www.lonerunners.net www.lonerunners.net lab.lonerunners.net lab.lonerunners.net

Migrating to Rails 2.0

Today i have done some migrations to Rails 2.0.

Here is a quick todo checklist to upgrade your rails 1.2 to rails 2.0:

  1. Install Rails 2.0, for example with gem install rails
  2. Update system gems with gem update –system
  3. Change the value of RAILS_GEM_VERSION to 2.0.2 in your environment.rb
  4. Add the following lines to your environment.rb:
    config.action_controller.session = {
      :session_key => ‘_application_session’,
      :secret   => ’secretkey’
    }

    where you can get a secret key running rake secret
  5. Rename all your template files from .rhtml to .html.erb

A little bit of pain for an upgrade that will be automated, why rails developers haven’t wrote an upgrade script?

Links:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • De.lirio.us
  • description
  • Furl
  • Live
  • Ma.gnolia
  • Meneame
  • Reddit
  • Segnalo
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wikio IT
  • YahooMyWeb

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)