# Still Using old Rails even after Upgrade

**URL:** <https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574>\
**Category:** Rails\
**Created:** [March 23, 2010, 1:30am UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574 "2010-03-23T01:30:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 1:30am UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/1 "2010-03-23T01:30:26Z")

</div>

I was recently forced to upgrade to Rails 2.3.5 because of a problem  
with gem.  
After doing so, I’m trying to create a new site and I noticed that I am  
getting warnings for depricated commands and it looks like I’m running  
on my old Rails version 1.2.3?

Can anyone help me fix this so I am running on the newer version?

I am getting this message when I run script/generate:

[computer1][/work/blog]$ ./script/generate controller home index  
./script/…/config/boot.rb:26:Warning: Gem::SourceIndex#search support  
for String patterns is deprecated, use #find\_name  
/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/rails\_generator/lookup.rb:198:Warning:  
Gem::SourceIndex#search support for Regexp patterns is deprecated, use  
#find\_name

Thanks

jack

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 2:03am UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/2 "2010-03-23T02:03:37Z")

</div>

On 23 March 2010 00:30, jackster the jackle [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Can anyone help me fix this so I am running on the newer version?

Uninstall the old version? If it’s not there, it can’t run!  
sudo gem remove rails -v1.2.3

You might find though that the problems are caused by using different  
use accounts when you installed the gems… I’ve had issues like this  
in the past when I’ve installed some components as my user, and some  
as root… cue very temperamental problems!

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 2:20am UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/3 "2010-03-23T02:20:40Z")

</div>

When I try to start Webrick, it is still trying to load the old path:

./script/server  
./script/…/config/boot.rb:26:Warning: Gem::SourceIndex#search support  
for String patterns is deprecated, use #find\_name  
/usr/local/ruby-1.8.6/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require': no such file to load -- /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer (LoadError) from /usr/local/ruby-1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’  
from ./script/…/config/boot.rb:30  
from ./script/server:2:in `require’  
from ./script/server:2

The new libraray exists here:  
/usr/local/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5

How do I tell it to boot from this version?

thanks

jack

Michael P. wrote:

> On 23 March 2010 00:30, jackster the jackle [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Can anyone help me fix this so I am running on the newer version?
> 
> Uninstall the old version? If it’s not there, it can’t run!  
> sudo gem remove rails -v1.2.3
> 
> You might find though that the problems are caused by using different  
> use accounts when you installed the gems… I’ve had issues like this  
> in the past when I’ve installed some components as my user, and some  
> as root… cue very temperamental problems!

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 3:03am UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/4 "2010-03-23T03:03:55Z")

</div>

Quoting jackster the jackle [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I was recently forced to upgrade to Rails 2.3.5 because of a problem  
> with gem.  
> After doing so, I’m trying to create a new site and I noticed that I am  
> getting warnings for depricated commands and it looks like I’m running  
> on my old Rails version 1.2.3?

Have you locked the application to the old version of Rails. Is a line  
like  
this in config/environment.rb?

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

RAILS\_GEM\_VERSION = ‘2.3.5’ unless defined? RAILS\_GEM\_VERSION

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 4:08am UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/5 "2010-03-23T04:08:20Z")

</div>

On Mon, Mar 22, 2010 at 5:30 PM, jackster the jackle  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> [computer1][/work/blog]$ ./script/generate controller home index

Jack, after upgrading your Rails version, you need to update  
your individual application(s) by doing the following:

a) update your environment.rb to use the new Rails version  
number

b) execute - rake rails:update

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 12:43pm UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/6 "2010-03-23T12:43:22Z")

</div>

On 23 March 2010 11:30, jackster the jackle [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> that worked but now I’m getting

What worked? If you trim the whole previous message, no one knows what  
you’re replying to…

> require\_frameworks’: no such file to load – openssl (RuntimeError)
> 
> when I try to run Webrick.
> 
> From what I’m reading, I need to install openssl-dev

From what I’ve seen of posts from people with the same problem, that  
does seem to form part of the answer.

> Do you guys recommend that I run Rails under Apache or through Webrick?

For development or live servers? For live, I’d certainly avoid  
Webrick, as Apache/Passenger or NGinx is much  
better/faster/easier/reliable.  
Although to be honest, for development I avoid Webrick to, and use  
Mongrel 🙂

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [March 23, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574/7 "2010-03-23T12:30:30Z")

</div>

that worked but now I’m getting

require\_frameworks’: no such file to load – openssl (RuntimeError)

when I try to run Webrick.

From what I’m reading, I need to install openssl-dev but since this is a  
hosting server, I don’t have access to a package handler so I contacted  
web support.

Do you guys recommend that I run Rails under Apache or through Webrick?

thanks

jack
