Rails does not reload my models in development mode

  • I am using Rails 3.2.13
  • In development.rb , I have config.cache_classes = false
  • The problem occurs when I use Unicorn or Webrick.

I have really strange behavior. Say I output something in the logs: Rails.logger.warn "Hello"

If I reload the page, I will see "Hello" in the logs. If you delete it, it will disappear. But if I return it back, it will not appear ...

In addition, a simple raise "Fail!" in the model will cause the exception to be raised correctly. But if I remove raise and reload the page, it will still throw an exception.

What's happening?

+4
source share
1 answer

Do you have rails-dev-boost as a gem? Apparently, this causes a similar problem before

0
source

All Articles