How to reload classes on each request?

Hi guys.

I am playing with Rails, for two days, it's great, but I have one very annoying problem.

Now I'm restaring web server after each code change, because otherwise server use old classes. Rails doesn't refresh models, controllers, helpers, but refreshes RHTMLs.

I'm running in development environment, with standard config: config.cache_classes = false config.whiny_nils = true config.breakpoint_server = true config.action_controller.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_view.cache_template_extensions = false config.action_view.debug_rjs = true config.action_mailer.raise_delivery_errors = false

I tried webrick and mongrel, tried run it from radrails, nothing helped. I use ruby 1.8.5, rails 1.2.2, mongrel 1.0.1, on Windows Vista.

I somebody knows what should I do, please help me.

Odd, because using WEbrick (ruby script/server) does that exactly. I guess try reinstalling Rails?

Jason

I' m absolutely sure that I'm running dev environment.

Really now I install InstantRails and point InstantRails version of Mongrel, and my separately installed version of Mongrel to the same app dir, InstantRails version refreshes files, but my mongrel and webrick do not.

I absolutely don't understand where is the difference between them. Server versions are identical, env = dev - 100%.