阅读背景:

如何格式化rails控制器上的ruby中的数字,number_with_delimiter仅在视图中有效

来源:互联网 

I would like to format a number in a controller before inserting it into a string. But the function number_with_delimiter() does not work in a controller. I need the string to send to a javascript plugin.I would like to format a number in a controller




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: