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
Check the log files for "DEPRECATION WARNING" - enjoy updating your code :-)
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
- 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. - 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.
- 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) - 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
Check the log files for "DEPRECATION WARNING" - enjoy updating your code :-)

Post a Comment