# Development Mode: Class reloading gone nuts!

**URL:** <https://www.ruby-forum.com/t/development-mode-class-reloading-gone-nuts/104912>\
**Category:** Rails\
**Created:** [May 23, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/development-mode-class-reloading-gone-nuts/104912 "2007-05-23T20:34:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bramski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@bramski](https://www.ruby-forum.com/u/bramski)\
**Post date:** [May 23, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/development-mode-class-reloading-gone-nuts/104912/1 "2007-05-23T20:34:56Z")

</div>

This is mostly that I’ve gone a bit crazy, but I’m looking for an  
explanation of how class reloading works so I can try and debug this  
issue…

I have a class…  
class Event  
before\_create :bootstrap\_current\_user  
def bootstrap\_current\_user  
… saves the current user for this event…  
end  
end

class FriendRequestEvent \< Event  
end

So, in development mode, when I hit my controller, it culminates in a:  
FriendRequestEvent.create()

but, I’m getting an exception in development mode only…  
NoMethodError: boostrap\_current\_user for \<#FriendRequestEvent\>

for what possible reason could this occur? I’m thinking maybe it’s  
got the wrong parent class? Or somewhere else there’s an Event class  
being reloaded, but without the method??

---

<div class="post-metadata">

**Author:** ![bramski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@bramski](https://www.ruby-forum.com/u/bramski)\
**Post date:** [May 23, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/development-mode-class-reloading-gone-nuts/104912/2 "2007-05-23T20:40:58Z")

</div>

hi,

> class Event  
> before\_create :bootstrap\_current\_user  
> def bootstrap\_current\_user  
> … saves the current user for this event…  
> end  
> but, I’m getting an exception in development mode only…  
> NoMethodError: boostrap\_current\_user for \<#FriendRequestEvent\>

I’m assuming you copy/pasted the code and error messages here. If so,  
then your problem is your application seems to be looking for a  
misspelled method BOOstrap\_current\_user, without the T. Just find for  
that word in your code and you’ll probably fix it.

regards,

javier ramirez
