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
Post a Comment