Using helpers inside a controller [rails] [helpers] [custom]
Needed to do some number_to_currency action in a controller…(don’t aks why
) and found this nice code: (adjusted to the helper I needed)
def help Helper.instance end class Helper include Singleton include ActionView::Helpers::NumberHelper end
via Using helpers inside a controller [rails] [helpers] [custom].