# Undefined method errors in rails

**URL:** <https://www.ruby-forum.com/t/undefined-method-errors-in-rails/131889>\
**Category:** Ruby\
**Created:** [March 14, 2008, 4:57am UTC](https://www.ruby-forum.com/t/undefined-method-errors-in-rails/131889 "2008-03-14T04:57:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [March 14, 2008, 4:57am UTC](https://www.ruby-forum.com/t/undefined-method-errors-in-rails/131889/1 "2008-03-14T04:57:43Z")

</div>

Hi all,

I am currently developing a rails application. After a webserver reboot  
I often get undefined method errors which are caused by wrong types.

I am using a Builder::XmlMarkup object but sometimes it is interpreted  
as Fixnum resulting in those undefined method errors. But normally the  
code just works.

Does someone have similar problems or is this only a problem/bug in some  
rails specific classloading code? Could someone clarify how classloading  
works in ruby? Some classes are autoloaded, others aren’t?

Rails is version 2.0.2, Ruby is 1.8.6

Daniel
