ruby - How can I force require a file in the console? The 'reload!' command just dosen't work! -


i use rails-3.0.0.beta3 , ruby-1.9.2-preview3.

i have defined new methods in application_controller.rb, , need test them in console.

if changed codes in application_controller.rb.
have restart console.

have tried use 'reload!' command, dosen't work.

, use "require 'applicatioin.rb'",
still dosen't work.

help!

make sure you're in dev mode, try this:

activesupport::dependencies.clear 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -