« Home | Webtuesday: OpenID - distributed authentication » | California drives Prius » | Microformats Speech at Barcamp Zurich » | Comdays: Parteiische Medien as Nährboden für Polit... » | Comdays: Politik und die Blogosphere » | Stell dir vor es sind Comdays und keiner blogged d... » | Blogging from Nokia E70 » | Do it mobile - search and browse Switzerland in ma... » | Webtuesday: Automated Web UI Testing with Selenium... » | BarCamp in your neighbourhood - Zurich »

Howto: Update Rails to 1.2 RC1 on Locomotive

Update Jan 19th: Rails 1.2 is final - and Ryan has updated Locomotive - get the updated bundle.

Some quick notes from my recent experience updating Locomotive 2.0.8 to Rails 1.2 RC1:

Read more about Rails 1.2 RC1 at: weblog.rubyonrails.org
  1. execute in terminal: gem install rails --source http://gems.rubyonrails.org --include-dependencies
    you will see some errors during installation of the documentation - ignore them.
  2. open %yourapp%/config/environment.rb and add the build number behind the RAILS_GEM_VERSION - the line should look like: RAILS_GEM_VERSION = '1.1.6.5618' That will switch to the new rails version on restart of your app.
  3. execute in terminal: rake rails:update
    that will update some files in your application.. e.g. the prototype.js (before update 1.5.0_rc0 - after update 1.5.0_rc2)
  4. open %yourapp%/config/routes.rb and add the line: map.connect ':controller/:action/:id.:format' before the map.connect ':controller/:action/:id' line.. that will allow you to use the enhanced "Formats and respond_to" feature
If you should have problems that Rails can't find files - or is searching the wrong path - try adding the RAILS_ROOT in environment.rb e.g. RAILS_ROOT = '/Users/Me/Documents/Sites/YourApp' - that looks more like a bug in the RC to me - the old version did as expected.

Check the log files for "DEPRECATION WARNING" - enjoy updating your code :-)

Tags:

Links to this post

Create a Link