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 title: is available in this namespace? Applying it to the works of a symbol, e.g. @ 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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -