Frequently Asked Questions

Help Center Search

Integrating Existing Ruby Applications with Rails Version 2.2.2

Print this Article
Comment on this Article
Last Updated: March 19, 2009 9:04 AM

Rails 2.2.2 is now available to our Deluxe and Unlimited Hosting accounts running Hosting Configuration 2.0. This version of Rails resides in a development Gem path so existing Ruby application functionality will not be affected. To take advantage of this version of Rails, add the following code to your application's config/environment.rb file:

ENV['GEM_HOME'] = '/usr/local/lib/ruby/gems-dev/1.8'

NOTE: To ensure the path is accessed successfully, this line must appear before the call to Rails::Initializer.

This location is where future Rails versions will also reside. To guard against existing applications' compatibility with future Gem versions, you can either freeze Gems or use Ruby's require_gem command to specify Gem versions.

For more information about freezing Gems, see What does it mean to freeze Ruby Gems?.

For more information about require_gem, see Specifying Gem versions.

To view a list of the Gems currently installed on your shared hosting server, see What Ruby Gems are installed on my hosting account?.