Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个初始化器,它覆盖了这个散列中的一个值,但是当我在我的视图中调用方法 (number_to_currency) 时,它不会影响输出。
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