[Solved] Can’t output currency in ruby with money-gem [closed]


The money gem uses I18n. You can either add a valid locale or disable I18n:

require 'money'

Money.new(100).format  #=> I18n::InvalidLocale: :en is not a valid locale

Money.use_i18n = false

Money.new(100).format  #=> "$1.00"

1

solved Can’t output currency in ruby with money-gem [closed]