# Rails 1.1.2 is working on shared hosting that has rails 1.0

**URL:** <https://www.ruby-forum.com/t/rails-1-1-2-is-working-on-shared-hosting-that-has-rails-1-0/93923>\
**Category:** Rails\
**Created:** [April 14, 2006, 7:02am UTC](https://www.ruby-forum.com/t/rails-1-1-2-is-working-on-shared-hosting-that-has-rails-1-0/93923 "2006-04-14T07:02:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 14, 2006, 7:02am UTC](https://www.ruby-forum.com/t/rails-1-1-2-is-working-on-shared-hosting-that-has-rails-1-0/93923/1 "2006-04-14T07:02:12Z")

</div>

After many hours I got working

It is in spanish but you can copy paste the code.

[http://wiki.onrails.com.ar/onrailscomarwiki/show/Instalacion+de+Rails+y+Gems+en+un+hosting+compartido](http://wiki.onrails.com.ar/onrailscomarwiki/show/Instalacion+de+Rails+y+Gems+en+un+hosting+compartido)

P

[http://wiki.onrails.com.ar](http://wiki.onrails.com.ar)

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 14, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/rails-1-1-2-is-working-on-shared-hosting-that-has-rails-1-0/93923/2 "2006-04-14T18:10:02Z")

</div>

Interesting. Thanks for this. I don’t really understand why you had to  
mess  
with the RAILS\_GEM\_VERSION though.

---

<div class="post-metadata">

**Author:** ![peterpunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@peterpunk](https://www.ruby-forum.com/u/peterpunk)\
**Post date:** [April 14, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/rails-1-1-2-is-working-on-shared-hosting-that-has-rails-1-0/93923/3 "2006-04-14T18:19:52Z")

</div>

Shane S. wrote:

> Interesting. Thanks for this. I don’t really understand why you had to  
> mess  
> with the RAILS\_GEM\_VERSION though.

This trick apply to people who has:

- shared hosting
- rails 1.0 or 1.1.1 and wants to use gem rails 1.1.2 on your custom gem  
directory

Your environment.rb generated with rails 1.1.2 has a line with

# Specifies gem version of Rails to use when vendor/rails is not present

#RAILS\_GEM\_VERSION = ‘1.1.2’

When you dont want to freeze your rails 1.1.2 and want use the gem rails  
1.1.2  
you have to specify this in your environment.rb

But in shared hostings the gem environment differs from you home gem  
environment thats the trick. So you have to specify gem paths hacking  
your boot.rb

Sorry english is not my native language.

P

[http://wiki.onrails.com.ar](http://wiki.onrails.com.ar)
