I call helper methods from the Rails console in Rails 3 as follows:
>> helper.my_method(parameter) >> #=> some result
However, if I change the helper method, the changes are not reflected when I call the same method again. I have exitto run rails consoleto see how the changes to the helper method take effect.
exit
rails console
First of all, you incorrectly named your question. In the future, if you become clearer about what you are looking for, you will likely get an answer sooner.
-, Ruby "" "". , , , , .
, reload!, , .
reload!
, helper - , memoizes ApplicationController, reload!, , Rails 4. , ApplicationController.helpers.my_method(parameter) . reload! , helper.
helper
ApplicationController.helpers.my_method(parameter)
, , , ApplicationController.helpers.my_method(parameter).
reload! (include MyHelper), .
include MyHelper