I have a problem. I googled, asked for help on IRC. I can’t find an
answer. Suppose I have model Cart (from “Agile Web D. with
Rails”). I added call to logger.warn(“Some warning”) to one of it’s
methods. It fails with NameError, because ‘logger’ is unknown to
undefined local variable or method `logger’ for #<Cart:0x36b3bd8
Then I deleted offending line. Hit Refresh. Same error. Cleared
session cookies. Tried again. Same error. Looks like model is cached.
Restarted WebRick. Now it’s OK until next syntax error in model.
I’m running rails 1.0.0, ruby 1.8.2 on windows xp sp2. I use webrick
in development mode.
Why Rails behaves like that? What can I do to prevent this kind of