This project is archived and is in readonly mode.
Rails 2.3 is caching views in development mode
-
mlopes
Forgot to mention, the workaround is restarting Mongrel for Rails to refresh the views...
-
mlopes
Ok, found the issue. config.threadsafe! was enabled in development mode.
I don't know whether this is a bug or a feature (threadsafety is not ought to be enabled in dev mode), but it was causing views not to be reloaded in development mode and some other strange behavior as well like controller classes not being found from time to time.
-
thedarkone
Constant and view reloading are both not threadsafe, so neither is going to work with
config.threadsafe!. Also freshly generated Rails app doesn't containconfig.threadsafe!indevelopment.rbat all. No bugs here. -
CancelProfileIsBroken
- State changed from new to invalid
Agreed. This has been documented in various spots. If you spot somewhere in the RDoc or Guides that we could make it clearer, please submit a ticket on the docrails project.
-
mlopes
It could be my fault, but it took me several hours to figure this one out. If someone is with me on this one, please open a ticket for a huge warning on the docrails project (probably is a known issues section - something that would get properly indexed on Google while searching for 'rails 2.3 caching views in development mode'.