Should I set RAILS_GEM_VERSION = 'XXX' ???

Hi,

Just wondering what the collective wisdom is regarding whether the environment.rb file should have a “RAILS_GEM_VERSION = ‘1.1.6’” type line set or not?

I noted on Dreamhost previously after a rails upgrade my site wasn’t working, after which I can to do and change this parameter to align with the latest Dreamhost deployed version of Rails. So should I not be setting this parameter such that when Dreamhost upgrades my site doesn’t die?

Tks Greg

Unpacking rails (whatever version your app needs) into the vendor directory is the “safest” way to ensure everything keeps working.

Hi Greg, I take it that you're using Rails Gem. If this is the case I recommend that you do the following:

a) update your version environment.rb file to reference the correct version of Rails.

b) execute 'rake rails:update' in the root of your rails application

c) rake rails:freeze:gems

d) if you're using 3rd party gems within your application, then do the following:

     http://nubyonrails.com/articles/2005/12/22/freeze-other-gems-to-rails-lib-directory

e) upload to your server

Good luck,

-Conrad

tks guys