How to include a ruby gem environment.rb file?

I'm doing a Web Service Based on a page I found
( using
the rails version 2.3.4, the web service is already working, but when
working on a version Previous:

RAILS_GEM_VERSION = '2 .0.2 'unless defined? RAILS_GEM_VERSION

I can not run the service.

Hi Jorge,

It’s because config.gem was first introduced in version 2.1 – that’s why it doesn’t work in 2.0.2. You can see that in by looking under “Added config.gem for specifying which gems are required by the application” and then moving up until you see the version.


Hi Lasse.

I had an application in version 2.0.2 and I changed the version of the
application already had, I thought it would be harder, but it was very

On the page you mention, as I checked it, and is very helpful.

Thanks for responding.


Nice – good you got it working :slight_smile: