# Validators.rb breaks on update from Rails 2.2.2 to 2.3.2

**URL:** <https://www.ruby-forum.com/t/validators-rb-breaks-on-update-from-rails-2-2-2-to-2-3-2/166447>\
**Category:** Rails\
**Created:** [April 25, 2009, 11:52am UTC](https://www.ruby-forum.com/t/validators-rb-breaks-on-update-from-rails-2-2-2-to-2-3-2/166447 "2009-04-25T11:52:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Mackin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@John\_Mackin](https://www.ruby-forum.com/u/John_Mackin)\
**Post date:** [April 25, 2009, 11:52am UTC](https://www.ruby-forum.com/t/validators-rb-breaks-on-update-from-rails-2-2-2-to-2-3-2/166447/1 "2009-04-25T11:52:12Z")

</div>

Hi,

I just upgrade from 2.2.2 to 2.3.2 and the following error when trying  
to start the server

=\> Booting Mongrel  
=\> Rails 2.3.2 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/core\_ext/module/aliasing.rb:33:in `alias_method': undefined method `valid?’ for class `ActiveRecord::Base' (NameError) from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/core_ext/module/aliasing.rb:33:in `alias\_method\_chain’  
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/callbacks.rb:224:in `send' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/callbacks.rb:224:in `included’  
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/callbacks.rb:223:in `each' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/callbacks.rb:223:in `included’  
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/base.rb:3143:in `include' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/base.rb:3143 from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/base.rb:3137:in `class\_eval’  
… 11 levels…  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/  
server.rb:84  
from /opt/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `require’  
from ./script/server:3

I figured out that by commenting out the validators.rb (http://  
[pastie.org/457289](http://pastie.org/457289)) that I used so far it’ll start up fine.

Apparently the issue lies with valid? but I can’t figure out how to  
fix it.

Does anyone know how to go about this?

Cheers,

JM
