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:
- Install Rails 2.0, for example with gem install rails
- Update system gems with gem update –system
- Change the value of RAILS_GEM_VERSION to 2.0.2 in your environment.rb
- 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 - 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:
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