Rails - Automatic Reloading and Models
I'm fairly new to RoR. I have to admit that I'm pretty excited about exiting the Code-Compile-Deploy-Run cycle because of config.cache_classes = false in \environments\development.rb. However, I've discovered that doesn't apply to Models. Models are loaded at server startup. Therefore, we're back to the stop..start to pickup Models changes. I haven't tried either of these yet!
Two options:
- Reload the models through console
ruby script\console Dispatcher.reset_application!
- http://www.wejn.org/stuff/rails-reloadable-custom-models.html