Rails Server needs restart every time I make changes? why? -


every time change in controller's or in models, have restart server take effect.but wasn't case, used work before, when changed anything, don't know happened ?

my rails version 3.2.11

in development environment file have set config.cache_classes = false.

please help..

my development.rb file follows

testapp::application.configure   # settings specified here take precedence on in config/application.rb    # in development environment application's code reloaded on   # every request. slows down response time perfect development   # since don't have restart web server when make code changes.   config.cache_classes = false    # log error messages when accidentally call methods on nil.   config.whiny_nils = true    # show full error reports , disable caching   config.consider_all_requests_local       = true   config.action_controller.perform_caching = false    # don't care if mailer can't send   config.action_mailer.raise_delivery_errors = false    # print deprecation notices rails logger   config.active_support.deprecation = :log    # use best-standards-support built browsers   config.action_dispatch.best_standards_support = :builtin    # raise exception on mass assignment protection active record models   config.active_record.mass_assignment_sanitizer = :strict    # log query plan queries taking more (works   # sqlite, mysql, , postgresql)   config.active_record.auto_explain_threshold_in_seconds = 0.5    # not compress assets   config.assets.compress = false    # expands lines load assets   config.assets.debug = true    config.action_mailer.default_url_options = { :host => 'localhost:3000' }  end 

i have got answer..

after adding following line in development.rb file issue has been resolved.

config.reload_classes_only_on_change = false 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -