0

我创建了一个初始化器,它覆盖了这个散列中的一个值,但是当我在我的视图中调用方法 (number_to_currency) 时,它不会影响输出。

4

1 回答 1

2

overriding the DEFAULT_CURRENCY_VALUES doesn't work.

you should add this to your locale file:

# for Brazilian Portuguese
pt-BR:
  number:
    format:
      unit: "R$"
      separator: ","
      delimiter: "."
      precision: 2
      significant: false
      strip_insignificant_zeros: false
于 2011-12-27T13:25:15.757 回答