30 Mar '13, 11am

へ~ clear_helpers 知らなかった。

Clears up all existing helpers in this class, only keeping the helper with the same name as this class. Show source # File actionpack/lib/abstract_controller/helpers.rb, line 104 def clear_helpers inherited_helper_methods = _helper_methods self . _helpers = Module . new self . _helper_methods = Array . new inherited_helper_methods . each { | meth | helper_method meth } default_helper_module! unless anonymous? end

Full article: http://apidock.com/rails/AbstractController/Helpers/Class...

Tweets

@Xursian For currency use the view helper: numb...

api.rubyonrails.org 29 Mar '13, 9pm

Provides methods for converting numbers into formatted strings. Methods are provided for phone numbers, currency, percenta...