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>

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 ?

Learn to type faster?