ruby on rails - Why can I access :number_to_currency but not :titleize as helpers in my view? -
I think this is the default behavior I : display_with = & gt; I'm trying to use the best_in_ location. :
title to format the output.
How can I ensure @ name.titleize
, but when passed as a parameter
Many thanks! Chris
Have you tried to do something like that?
: Display_with = & gt; Lambda {| Wei | ActiveSupport :: Inflector.titleize (v) .html_safe}
You have to include the entire path because it is not available in ideas.
The reason @ name.titleize
is working because this method is in any other related to the string class.
Vs
Comments
Post a Comment