请建议我一个解决方案
任何帮助,将不胜感激.
pstrong Total:span = @order.currency = humanized_money_with_symbol @order.total_paisas/100解决方法 您可以通过字符串插值解决此问题,方法如下:
pstrong Total:span = "#{@order.currency} #{humanized_money_with_symbol @order.total_paisas/100}"
或者像这样的非破坏性空间:
pstrong Total:span = @order.currency | = humanized_money_with_symbol @order.total_paisas/100总结
以上是内存溢出为你收集整理的ruby-on-rails – 如何在ruby slim中提供空白全部内容,希望文章能够帮你解决ruby-on-rails – 如何在ruby slim中提供空白所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)