# Upgrading Ruby - will it affect Rails? - 1.8.6 to 1.9.1

**URL:** <https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509>\
**Category:** Rails\
**Created:** [July 22, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509 "2009-07-22T16:51:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [July 22, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509/1 "2009-07-22T16:51:30Z")

</div>

Hi all,

I have a question regarding upgrading Ruby and how it may or may not  
affect rails. Other than rubygems and gem versions that my project will  
use (I know I have to check to make sure they will work with 1.9.1 on  
windows), will there be any issues upgrading that I might not be aware  
of?

And, if anyone here is using netbeans IDE, are you aware of any issues  
upgrading a rails project from one ruby platform to another?

Many thanks to any who answer and assist with these questions.

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [July 22, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509/2 "2009-07-22T17:47:23Z")

</div>

I’ll make the leap on my vmware box and test it myself. No response  
necessary now.

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [July 22, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509/3 "2009-07-22T18:07:51Z")

</div>

One word, yes!

If you want to use Ruby 1.9 with Rails then you have to reinstall all  
the gems under Ruby 1.9 which is where you might get issues. Currently  
Ruby 1.9.1 and Rails 2.3.3 works fine but there are issues with some  
gems, please check out this website for more information about what  
users see [http://isitruby19.com/](http://isitruby19.com/)

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [July 22, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509/4 "2009-07-22T18:43:28Z")

</div>

Hiya mate,

Yeah I’m not worried about gems in my project. A while back I wanted to  
set out and create my own windows compiled version of ruby. I ended up  
settling on Luis L.'s one-click mingw sandbox 1.9.1 - 1.9.2 checkout  
instead. There were just too many libraries to compile to get ruby to  
work from source on windows.

So, I ended up finding all of the gems that work with windows and with  
ruby 1.9.1 and then cross-checked them on my linux distro to verify they  
work there too.

But, I wanted to use postgres over mysql so I made the leap to a lower  
version and was greatly disappointed with pg and foreign key handling.  
So, rather than waste time, I worked hard on developing my project and  
testing it and have reached a downtime point where I can go back to  
1.9.1.

I just wanted to ensure that (other than gems) would I have any known  
issues swapping platforms and whether or not it will affect my rails  
project. I believe the answer to that is as you stated (gems and their  
dependencies) and also whether or not my IDE (netbeans) will be  
affected.

I’ll find out by the end of today when I finish this porting up.

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [July 23, 2009, 2:53am UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509/5 "2009-07-23T02:53:41Z")

</div>

So,

The short answer is yes - Ruby 1.9.1 from 1.8.6 affects several things,  
the big ones being how scopes and controller calls to models work with  
scopes work. In addition, several ways that I manage arrays created  
errors so I’m in the mode of polishing them up.

I’m taking a friend’s advice and just using 1.9.1 as a test platform for  
my project. 1.9.1 is not doable for production until I’m able to  
completely and thoroughly test all functionality with it. I’ll probably  
make the permanent move next year some time.
