From: Matt H Date: 2009-12-01T00:31:06+09:00 Subject: Re: How does ActiveRecord do it? On Mon, Nov 30, 2009 at 8:02 AM, Ralph Shnelvar wrote: > Is webrick(?) reloading .\app\models\user.rb every > time a form is generated? Yes, well it's not webrick doing the reloading, it is Rails, Rails will reload all your models before each request in development mode. Rails configuration API is found here: http://api.rubyonrails.org/classes/Rails/Configuration.html In particular the 'cache_classes', attribute which is configured in the RAILS_ROOT/config/environments/*.rb filles. You can also review the following files for descriptions of the various options: * RAILS_ROOT/config/environment.rb * RAILS_ROOT/config/environments/development.rb * RAILS_ROOT/config/environments/production.rb * RAILS_ROOT/config/environments/test.rb > Assuming it is reloading .\app\models\user.rb in development mode ... > will it do this in production mode? 'cache_classes' is set to true by default in RAILS_ROOT/config/environments/production.rb. This disables reloading in production mode. Also, when you're in the rails console, you can manually reload classes by calling 'reload!'. The rails mailing list will be able to provide much more satisfactory answers regarding such items in the future. You should post rails related questions there. -- Find me - http://www.smajn.net/social