i have a rails
3 app in dev mode that won't load any changes i make when its running webrick. i triple checked the settings for my development.rb
and made sure i am running in development mode.
config.cache_classes = false
config.action_controller.perform_caching = false
i also checked my tmp
directory to make sure the cache folder is empty - i have yet to do any caching on the site and have never turned on caching. im guessing its a loading problem with the files.
also i was running on webrick
then installed mongrel and the problem still persists.
im guessing ive run into a config problem, bc i dont see anyone else posting such a prob. anything else im missing?
EDIT: it looks like my view helpers aren't auto loadable - aren't helpers by default supposed to be reloadable in rails 3?
I'm using Rails 4, and my cache call was in a helper using
Rails.cache.fetch
.After googling a bit, I found out this issue (https://github.com/rails/rails/issues/20733), where a PR was merged into rails 5 documentation to make clear that '
', being 'low-level-caching' the Rails.cache.fetch.
It's on the docs now: http://guides.rubyonrails.org/caching_with_rails.html
I've had a similar experience, but I don't believe it was with an actual helper class, it was with anything I wrote under the
lib/
directory. If you've had to use arequire 'some_class'
statement, then you should switch it to:Worked like a charm for me.
I know this is an old question, but for anyone coming here with a similar issue, make sure you didn't accidentally move
production.rb
fromconfig/environments/
toconfig/initializers/
like I did. That will make Rails read in theproduction.rb
file and override your development settings. Whoops.I had the same problem and here is the simple solution.
In your
config/environments/development.rb
set following settings:Had the same issue, it was caused by rails-dev-tweaks gem which is, if you used default configuration from README, disabling stack reload upon AJAX requests.