# Problems upgrading to Rails 2.2.2

**URL:** <https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929>\
**Category:** Rails\
**Created:** [December 5, 2008, 8:38am UTC](https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929 "2008-12-05T08:38:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 5, 2008, 8:38am UTC](https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929/1 "2008-12-05T08:38:13Z")

</div>

Hi all,

I’ve just a new macbook and I need to work with rails 2.2 and not the  
version as installed with leopard. I updated gems to 1.3.1 without any  
trouble (using gem update --system) but when i try to install rails  
with the gem command all i get is this:

ERROR: While executing gem … (NoMethodError)  
undefined method `include?’ for nil:NilClass

Any suggestions would be much appreciated!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 5, 2008, 9:39am UTC](https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929/2 "2008-12-05T09:39:09Z")

</div>

On Thu, Dec 4, 2008 at 11:37 PM, Jakob [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any suggestions would be much appreciated!

I have installed everything through MacPorts because it allowed me to  
better  
maintain  
my Ruby and Rails development environment even after an upgrade of Mac  
OS.  
Thus,  
I would recommend not installing anything in subdirectory /usr. At this  
time, all my  
RoR components are installed in /opt.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 5, 2008, 9:54am UTC](https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929/3 "2008-12-05T09:54:59Z")

</div>

Thanks! However, it seems that specifying the installation path with  
gem install rails worked for some reason  
/Jakob
