# What happen? when I update rails from 1.2.6 to 2.0.2

**URL:** <https://www.ruby-forum.com/t/what-happen-when-i-update-rails-from-1-2-6-to-2-0-2/124945>\
**Category:** Rails\
**Created:** [January 3, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/what-happen-when-i-update-rails-from-1-2-6-to-2-0-2/124945 "2008-01-03T22:53:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [January 3, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/what-happen-when-i-update-rails-from-1-2-6-to-2-0-2/124945/1 "2008-01-03T22:53:43Z")

</div>

/!\ FAILSAFE /!\ Thu Jan 03 13:49:24 -0800 2008  
Status: 500 Internal Server Error  
You have a nil object when you didn’t expect it!  
You might have expected an instance of ActiveRecord::Base.  
The error occurred while evaluating nil.[]  
c:/usr/ruby/lib/ruby/1.8/cgi.rb:1166:in `[]’

Today I update rails from 1.2.6 to 2.0.2. I run ruby script/server  
WEBrick  
I got this error. what happen… Who can help me? Thanks!  
by the way, I run this app is correct under rails 1.2.6

---

<div class="post-metadata">

**Author:** ![OnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Post date:** [January 3, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/what-happen-when-i-update-rails-from-1-2-6-to-2-0-2/124945/2 "2008-01-03T23:00:10Z")

</div>

o, the first error is  
NoMethodError (You have a nil object when you didn’t expect it!  
You might have expected an instance of ActiveRecord::Base.  
The error occurred while evaluating nil.[]):  
c:/usr/ruby/lib/ruby/1.8/cgi.rb:1166:in `[]’

I run rails in windows XP.
