Rails and vagrant – problem with refreshing controllers
I’ve always same issue with changes in the controllers or models in development env. So recently I found solution which works perfectly:
in config/environment/development.rb add or set:
config.cache_classes = false config.reload_classes_only_on_change = false
also in rails 5.1 starting serves has changed now simply run
rails s previously you had to set binding to listen on another address like so
rails s -b 0.0.0.0 – now it listen on 0.0.0.0:3000 and if you are using vagrant it wont work – at least it didn’t work for me.