views:

90

answers:

2

My rails project has this line in /config/environment.rb

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION

As we now have 2.3.5 as the most recent upgrade, is there a way to make my environment.rb accept minor version bumps?

(without I have to explicitly change 2.3.2 to 2.3.5)

+2  A: 

No, there isn't.

You application needs to use a specific Rails version mostly because different tiny releases might require additional steps to upgrade the framework such as changes to boot.rb.

$ rake rails:update
Simone Carletti
A: 

Firstly, you need to change the version to 2.3.5 from 2.3.5 and then run

rake rails:update
Nakul