Wednesday, July 16th, 2008
Developing in Rails 2.1 and deploying in Rails 2.0.2 (or error – undefined method time_zone)
Problem
You are developing on the latest version of Rails (2.1), but your production server for deployment uses version 2.0.2 (as dreamhost is using at the moment).
Solution
First change the environment.rb file to use the rails version in your deployment server
RAILS_GEM_VERSION = ‘2.0.2′ unless defined? RAILS_GEM_VERSION
You should probably be geting the error: undefined method = time [...]
No Comments » - Posted in ruby on rails by kosmas
Tuesday, April 8th, 2008
Upgrading to Rails 2.0.2 problems/solutions
Problem
Upgrading from Rails version 1.2.3 to version 2.0.2.
Following the suggestion in DH’s weblog here when using sudo gem install rails -y, it gets the trunk version of rails which at the time was 2.0.2.9216.
This causes a few problems and breaks a few more things.
Solution
In order to get back to the latest stable version, you have [...]