# Rails 1.2.6 to 2.0.2 Help

**URL:** <https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303>\
**Category:** Rails\
**Created:** [February 6, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303 "2008-02-06T16:21:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 6, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/1 "2008-02-06T16:21:05Z")

</div>

Hi,

I recently got a new server and installed all my necessary libraries  
(gems). With the new libs came a new version of Rails.

I got everything configured (i think) and tried to start up the server  
and got the following:

* * *

```
  * config.breakpoint_server has been deprecated and has no

```

effect.

* * *

Followed by lots of errors regarding: undefined method `require\_gem’  
for main:Object (NoMethodError)

What happened?

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 6, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/2 "2008-02-06T16:28:48Z")

</div>

Also, I removed a ‘require’ statement from the environment.rb and got  
the “config.breakpoint” warning and the server started up.

However, when I try and access the app I get: “500 Internal Server  
Error”

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 6, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/3 "2008-02-06T16:32:20Z")

</div>

Just commented out config.breakpoint in my development.rb file. Is  
this OK?

No more error, but still getting “500 Internal Server Error”

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 6, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/4 "2008-02-06T18:05:40Z")

</div>

Hmmm…

So, can I run 1.26 and 2.0.2 at the same time to support my legacy  
apps?

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 6, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/5 "2008-02-06T22:06:58Z")

</div>

Check your prod or dev log. It will help you.  
The 500 error might be related to the new way rails deals with the  
session. You need to add a line like this one in your environment.rb:  
config.action\_controller.session = { :session\_key =\>  
“\_app\_session”, :secret =\> “something longer than 30 characters” }

I am also currently enjoying the damn hard migration to Rails2.

H

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 7, 2008, 12:02am UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/6 "2008-02-07T00:02:38Z")

</div>

There’s no need to give up as it is most likely something simple.

Did you change all the require\_gem method calls in config/boot.rb to  
just  
“gem”?

Did you set the session like Harry said?

Did you read what the last 50 lines of your development environment is  
telling you?

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 6, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/7 "2008-02-06T23:56:46Z")

</div>

I gave up. Sadly.

I froze Rails in 1.2.6 for my application.

So, now that I froze Rails, I can re-install 2.0.2 and all new apps  
will use 2.0.2?

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [February 7, 2008, 2:14am UTC](https://www.ruby-forum.com/t/rails-1-2-6-to-2-0-2-help/128303/8 "2008-02-07T02:14:41Z")

</div>

So, boot.rb didn’t have any ‘require\_gem’ in it at all. I did not set  
the session and I have not read the last 50 lines of my development  
environment. BUT, I will do that now.

I thought I saw something that you could run and find out if anything  
you have in your application was deprecated in 2.0.2. Does this  
exist?
