Reload! doesn't work

Hi!

I’d like not to have to quit an re-enter into rails console when i
change somethings in my model, the instruction reload! lead me to
systematic “unknown method” error does anybody faced to this kind of
problem??

Below an example:NoMethodError: undefined method `events’ for
#Ad:0xb776782c

On Jun 3, 11:39 pm, Nicolas I. [email protected]
wrote:

Hi!

I’d like not to have to quit an re-enter into rails console when i
change somethings in my model, the instruction reload! lead me to
systematic “unknown method” error does anybody faced to this kind of
problem??

When you do use reload! it pretty much means that you can’t use
anything you wrote before you ran reload!. Reload effectively guts
Activerecord classes, so if you have say an instance of Person and
reload! then that instance remains an instance of the old Person
class, but that class has had all its methods removed and so is a bit
useless.

Fred

Fred : OK thank i understand now… any idea to debug an test code
quickly so ?

On Wed, Jun 4, 2008 at 8:36 AM, nico Itkin
[email protected]
wrote:

Fred : OK thank i understand now… any idea to debug an test code
quickly so ?

Learn to type faster?


Appreciated my help?
Recommend me on Working With Rails
http://workingwithrails.com/person/11030-ryan-bigg